How to tell Xcode where my info.plist and .pch files are

前端 未结 7 1676
轻奢々
轻奢々 2020-12-02 10:28

I renamed my project and it\'s files and now Xcode is still looking for the old info.plist file. Where do I set the locations of the .plist and .pch files that it needs.

7条回答
  •  醉话见心
    2020-12-02 11:00

    I know this is an old post, but I just ran into this same problem using Xcode 8.2. I had already duplicated .plist and .storyboard files in finder, but my Xcode project did not pick them up. In order to add files to your xcodeproj just right click on the project or folder in the Project Navigator and select Add Files to "Your Project Name". You should be able to select the files you need (use Cmd key to select multiple individual files).

    If you created a new .plist or .storyboard file you'll need to link to your target membership. To link just click on the file in the navigator and on the right hand side in your standard editor > file inspector > target membership select the appropriate target membership.

    The correct way to do this without duplicating files in finder is by selecting the file to duplicate and then going to File > Duplicate on the Xcode navigation menu.

提交回复
热议问题