Xcode can't open Info.plist — error says “there is no such file”

前端 未结 12 1242
悲&欢浪女
悲&欢浪女 2020-12-13 08:16

I switched to Xcode 4 and loaded my project, which worked perfectly in Xcode 3. When I run it, I get an error that says:

The file “Info.plist” couldn’

相关标签:
12条回答
  • 2020-12-13 08:40

    Xcode 8

    Select the project file in the left pane. Then open the general tab and they have added a nice button that lets you select the file. (You may have to add it into your project structure as well)

    0 讨论(0)
  • 2020-12-13 08:40

    I know it's been a while, but I faced the same issue, and the answers I've found weren't very clear for me, so I decided to make an instruction with a bunch of screenshots.

    1) First, open the right-hand panel in xcode and click on your .plist file:

    2) Second, choose Relative to project location on the right-hand panel and copy the link just below it:

    3) Third, go to the main project settings, choose your target and click on the Build settings tab:

    4) And finally, type Info.plist in the search field, double-click on the existing path and paste the link you have copied earlier:

    In the end, clean the project Shift + Cmd + K and re-run.

    0 讨论(0)
  • 2020-12-13 08:46

    This problem happened the same to me,this happened when I merge the project from other project,some project setting was difference in above two, open the info.plist file in Text Edite,solve the conflcted then save it,everything goes well!

    0 讨论(0)
  • 2020-12-13 08:47

    That the file exists in your Xcode project folder isn't enough. Have you verified the file is properly referenced in your application target's build settings so it's properly copied into the app bundle? It's not quite the same as a standard resource (ie, it's not made a member of the target in the set of target membership check boxes) but rather a build setting because of its importance in a properly-formatted bundle.

    Navigate to the project (select it in the Project navigator), select the application target in the list of targets, then click the Build Settings tab. Under the Packaging section, make sure the "Info.plist File" is properly set to the location/file name.

    0 讨论(0)
  • 2020-12-13 08:47

    go to targets. right click on the test target. yourProjectTests and delete it

    0 讨论(0)
  • 2020-12-13 08:48

    under Xcode 4.6 if the appname-Info.plist is not visible under project -> target/info, go to summary tab and it will ask for the appname-Info.plist file. Select the correct file from the suggestion(s).

    0 讨论(0)
提交回复
热议问题