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

前端 未结 25 827
庸人自扰
庸人自扰 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条回答
  • 2020-12-08 06:43

    In my case i was edited my xcode project folder name so that this is happened after changing folder's new name(Project -> Targets -> Build settings -> Packaging -> Info.plist name) then working fine.

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

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

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

    Possible XCode 9 Update - I ran into this problem after I moved a bunch of files, including Info.plist, into a "Supporting Files" group. I've never had this error occur before XCode 9, so either it's something I did differently when moving/adding files to a group or it's something new w/ XCode 9 update.

    When creating a group/folder based on selected files in XCode 9, it actually moves the files into a new folder in the Finder. Thus, my Info.plist file was moved and XCode/build/compile couldn't find it. I followed nivritgupta's idea above and it worked perfectly (select "Choose Info.plist File..." from Identity category in General build settings). I then selected the Info.plist file from its new location (that had been) "relocated" by XCode 9, and then my project built without an issue.

    Side note: this also fixed the weird "Missing default-568h@2x" warning I started receiving at that same time. Two birds...

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

    Not for info.plist but for another plist file I encountered the same problem. the reason for the error is I inadvertently copied the file to a folder, so it created a symlink. and When I remove the original file, this error is thrown. Deleting the symlinking file resolved the problem.

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

    While creating framework with enabled test cases, please ensure project should have two info.plist, one in the main project and other in tests.now you are getting this error because there may be missing of info.plist file either in project or in tests.

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

    First you need to check in your project folder whether info.plist is there or not. If not then you need to copy info.plist from any other application into your project folder and add file in xcode. It will solve your problem.

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