5

I have tried to move the files in my project folder to a different folder and everything went ok, except that Xcode cannot find my Info.plist file now. This is the error I get.

could not read data from '/Users/jamiefraser/Developer/CocoaTouch Apps/MyApp/MyApp/MyApp/MyApp-Info.plist': The file “MyApp-Info.plist” couldn’t be opened because there is no such file.

The actual files location is

'/Users/jamiefraser/Developer/CocoaTouch Apps/MyApp/MyApp/MyApp-Info.plist'

I have checked the build settings for the project and they read

MyApp/MyApp-Info.plist

I have tried deleting the build folder and cleaning the project, but I always get this same error. I appreciate any help you can offer

Jamie
  • 5,090
  • 28
  • 26

3 Answers3

5

Remove MyApp/ portion from build settings. plist file usually is located in the same folder ad project. You can always open project file in vi and edit it manually.

sha
  • 17,824
  • 5
  • 63
  • 98
2

It is just a guess but it seems like one trailing /MyApp is too much in the location you are wanting to read from:

'/Users/jamiefraser/Developer/CocoaTouch Apps/MyApp/MyApp/MyApp/MyApp-Info.plist'

As opposed to the actual location:

'/Users/jamiefraser/Developer/CocoaTouch Apps/MyApp/MyApp/MyApp-Info.plist'

It would make sense to check out the URL / PATH variable you want to read from.

Faizan S.
  • 8,634
  • 8
  • 34
  • 63
1

I had the same problem after trying to duplicate and rename a project.

In Build Settings, I had to fix two paths before I finally got it compiling successfully:

  • Under Packaging, Info.plist
  • Under Apple LLVM 5.0 - Language, Prefix.pch
inorganik
  • 24,255
  • 17
  • 90
  • 114