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

前端 未结 12 1302
悲&欢浪女
悲&欢浪女 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

    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.

提交回复
热议问题