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’t be opened because there is no such file.
I have looked at the file in Xcode and it is there. So why can't it be opened?
Under Targets>Packaging>Info.plist file, make sure that the file path is correct.
For me the issue was that the error was referring to the
Info.plist
from a library I was using, not the actual.plist
file from the project.Maybe this will help someone in the future.
go to targets. right click on the test target. yourProjectTests and delete it
In my case, the file was there, but malformed. If you recently edited your Info.plist in a text editor, undo that change, and retry without breaking the markup validity.
For me this happened as a result of enabling localization of the plist file (to give language specific identifier of the app on springboard).
In targets>build settings>packaging>info.plist file key i changed the path from AppName/AppName-info.plist to AppName/Base.lproj/AppName-info.plist and everything worked as expected.
Remember, its lproj as in a small L and not a capital I.
Hope this helps.
In my case one of the key was missed out while adding ATS compliance flag
Instead of the correct one as below
I was having this
Although some of the online XML Validators did say the XMLs are correct, (which was not), I used
going to the directory where plist file is present (from terminal) and got to know the exact line number that had issues Reference :(https://stackoverflow.com/a/32494850/5438240)