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 questions (Could not read from Info.plist and Objective C/Xcode error: The file “Info.plist” couldn’t be opened because there is no such file)...I am using a relative path, and the plist file is in the correct absolute location. The type and location are correct as shown in the image below:
My biggest concern is that this is now happening on multiple projects, including one I ran successfully just a few hours ago! Does anyone know how to solve this???
EDIT I've also tried reinstalling XCODE and replacing the plist file. Xcode still can't find 'info.plist'.
NOTE I wanted to add that this was for Xcode 6.2.X (I can't remember which version number exactly, but it was pre-Xcode 6.3.X).
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
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.
The answers above did not apply to my case.
This is what I have discovered.
Some weeks ago I dowloaded to my Downloads folder a github objective c library for my project. I then added that librabry with "Add Files to..." and the library worked just fine.
I regularly delete old files and folders from my Downloads. It happens that I deleted the folder that contained the objective-c library! Therefore, Xcode was complaining that it could not find a "Info.plist" that was in that folder. I went to the Trash bin, restored the folder and now it's all good!
Next time I add files to my folder I will make sure the files get copied into the project.
This Apple doc was of great help: https://developer.apple.com/library/ios/qa/qa1649/_index.html
Good luck
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...
go to targets. right click on the test target. yourProjectTests and delete it
do this only after reading all the other answers on this page
So basically the other answers are probably what you need. I've tried all of them and they didn't work. Not because they are wrong, but because I was simply looking at the wrong place.
Basically the error message simply states: The file "Info.plist" couldn't be opened etc etc. And I noticed all the answers on this page spoke about the plist file pertaining to the actual project (or it's test files, anyway). I double checked 1000 times and they were definitely in the right place.
That's when I realized the error message simply wasn't giving enough information, I have many info.plist files on my project!
So I simply compiled the code outside of xcode using command line like so:
It gave me a much more detailed error message:
so it told me which plist file was problematic:
Libs/STPopup/Info.plist
.. I searched for that file and indeed it turns out I was given a project that had missing libs: