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).
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.
Real Project Example with screenshots showing another way to solve this issue.
Using Swift 4 and Xcode 9.
1-look at the Xcode build error problem as shown in the picture in the 'Step 1 Visual Description' and it will tell you which Sub Folder in your Xcode Project the file belongs in. In my case it is the NVActivityIndicatorViewExample/Info.plist. Step 1 Visual Description
2-But you can also see where the Info.plist file is supposed to be by going to the 'Build Settings' section in your Xcode projects 'Target' area as shown in the picture in the 'Step 2 Visual Description'. When you're there look in the 'Packaging section' and click on the 'Info.plist file' row to have a pop up view show you which folder the file is supposed to be in. Step 2 Visual Description
3-Find your Info.plist file, open it up as a source code file by right clicking on it. Look at the Step 3 Visual Description for help.
4-Copy the code and delete the Info.plist file. Look at the Step 4 Visual Description for help.
5-The find the folder inside your project where the Info.plist file is supposed to go according to your build setting then right click on that folder and click on 'New File'. Look at the Step 5 Visual Description for help.
6-Make sure you're in the section for the kind of App (iOS in this case) you're building, go to resources and select 'Property List'. Look at the Step 6 Visual Description for help.
7-Type in "Info" as the file name with no extension, make sure the Group and Target are selected for your application and click "Create". Look at the Step 7 Visual Description for help.
8-Open the newly created Info.plist file as "Source Code", paste the previous XML code you copied from the deleted Info.plist file, save, and the run your app. (You can also build and clean the project if you want.)
XCode 10
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.As answered by @narner (answer marked as correct), yes it can make code work. But here is something better to solve the problem.
My suggestion is that instead of delete tests targets, better if we change the path of info.plist under tests target.
Simple steps:-
In project, click on the project file -> ProjectNameTests(under targets) ->Build settings->Packaging->Info.plist Here you change the path of file.
The solution for this particular instance of the error was “Info.plist couldn't be opened because there is no such file” was that I had deleted all of the files in the "Project Tests" folder, but was still had "Project Tests" listed under my targets. After deleting the "tests" target, the project built successfully.