简体   繁体   中英

How to show .txt files in Xcode project navigator

Is there any way to adjust Xcode so I can see the .txt files that I make using #include ofstream outputFile; As in creating a .txt file in the environment and writing data to it, and also having it appear in my project navigator after it is done?

I have tried what previous users have said, which is clicking on the projectname > My Mac and selecting Edit Scheme -> Options -> Working Directory, however, I have to go to my finder to be able to see the file. My goal here is to have it appear and update in the project navigator.

The only way to have a txt file appear in Xcode's project navigator is to add the file to the project. Only files that have been added to the project appear in the project navigator. If your program creates txt files in the project's folder, those files won't appear in the project navigator.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM