Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode can't open Info.plist -- error says "there is no such file"

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?

like image 998
Octavia Togami Avatar asked May 26 '11 22:05

Octavia Togami


People also ask

How do I fix Xcode file not found?

Delete the files from the xcode project navigator (only deleting references). Add them again to the project (dragging from finder into the project navigator).

What is info plist in Xcode?

Xcode supplies an information property list file when you create a project from a template, as described in Create a project. By default, Xcode names this file Info. plist and adds it to your project as a source file that you can edit. Xcode creates one information property list for each target in the project folder.

How do I open a plist file on a Mac?

plist - The primary property list for Mac OS X applications, located in the /​Contents/​ directory of an . APP bundle. To view this file, right-click an application file, select "Show Package Contents," and open the Contents folder.


2 Answers

That the file exists in your Xcode project folder isn't enough. Have you verified the file is properly referenced in your application target's build settings so it's properly copied into the app bundle? It's not quite the same as a standard resource (ie, it's not made a member of the target in the set of target membership check boxes) but rather a build setting because of its importance in a properly-formatted bundle.

Navigate to the project (select it in the Project navigator), select the application target in the list of targets, then click the Build Settings tab. Under the Packaging section, make sure the "Info.plist File" is properly set to the location/file name.

like image 70
Joshua Nozzi Avatar answered Oct 04 '22 16:10

Joshua Nozzi


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

like image 40
amit gupta Avatar answered Oct 04 '22 14:10

amit gupta