Info.plist Utility Error: “Info.plist couldn't be opened because there is no such file”

前端 未结 25 825
庸人自扰
庸人自扰 2020-12-08 06:15

I\'m running into what seems to be common error, in that Xcode can\'t seem to find my \'Info.plist\' file.

I\'ve checked the answers to these two StackOverflow ques

相关标签:
25条回答
  • For me, the anwser for this issue was:

    1.Turn off Xcode

    2.Go to ./Users/You/Library/Developer/Xcode/DerivedData

    3.Delete everything from this folder

    4.Run Xcode

    5.Build&Clean

    Xcode version: 6.4 (6E35b)

    0 讨论(0)
  • 2020-12-08 06:27

    One of the most weird issue that I have faced. In my case I do not have any file missing, I cleared the derived data, cleared the modular cache, cleaned the project multiple times, restarted my xcode, but nothing worked for me. At the end I restarted my computer with the only hope to resolve this issue which surprisingly worked for me!!!

    0 讨论(0)
  • 2020-12-08 06:31

    Relocate the files by double clicking on this icon:

    I had this issue too for the past couple hours. I had downloaded my github project from an earlier version. the search paths seem to have gotten confused and needed to be explicitly told where the files were located.

    0 讨论(0)
  • 2020-12-08 06:32

    One other thing for consideration is to uncheck Localization for info.plist in utility bar,if you have checked it and then clear the project,the task is done!

    0 讨论(0)
  • 2020-12-08 06:33

    XCode 10 and 11

    I know it's been a while, but I faced the same issue today, and the answers I've found weren't very clear for me, so I decided to make an instruction with 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-08 06:33

    Also you can check the target dependencies. It took me 1hr before realising that I have copied a UI test target for target A, but there was a dependency left. So the build required a file that was not mapped to target B, but only to A.

    ui test for target B: dependency for target B and A

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