could not read data from '/Users/iamme/Documents/XCode/myapp/myapp/myapp-Info.plist': The file “myap


Don't use an absolute path here, use a path relative to your project file.

The default layout for Xcode projects is this:

CodeName.xcodeproj
CodeName/
    CodeName-Info.plist
    CodeName-Prefix.pch

Graphically, that looks like this in Finder: Project Layout in Finder

In this case, you'd want Info.plist File to be CodeName/CodeName-Info.plist.

Here, I've selected the Xcode project, target, and used the search bar to limit the settings being shown:

Info.plist setting

Finally, check that your project is including the info.plist file from the right location.

Info.plist location

share improve this answer
 
 
Thanks I put relative path but still got problem please see my update. –   user310291  Mar 27 '12 at 0:33
 
You missed the part of the log with the error. :) –   Steven Fisher  Mar 27 '12 at 0:41
 
Oh, did you mean the same error? Well, the other thing it could be is the relative path of the Info.plist. That's in Supporting files. I'll update tne answer accordingly. –   Steven Fisher  Mar 27 '12 at 0:56
 
I check that too and path is correct: I can open its directory clicking on the arrow shown on the right panel. I really don't understand where he keeps memory of a path that doesn't exist. –   user310291  Mar 27 '12 at 13:02 
1 
It might be time to use a text editor on the project files and see if there's any absolute paths inside. I would not change them there, just use it for inspection. Search for "/Users". –   Steven Fisher  Mar 28 '12 at 17:08

Select your project Target go to Build Phase, then select "Copy Bundle Resources", you would see red highlighted file references just remove those references, again add all those files. Now perform clean and build.

For a safety check just verify the Info.plist file path in "Build Settings"> Packaging section.

Warning : Never add Info.plist in "Copy Bundle Resources" build phase in your iOS project.


Don't use an absolute path here, use a path relative to your project file.

The default layout for Xcode projects is this:

CodeName.xcodeproj
CodeName/
    CodeName-Info.plist
    CodeName-Prefix.pch

Graphically, that looks like this in Finder: Project Layout in Finder

In this case, you'd want Info.plist File to be CodeName/CodeName-Info.plist.

Here, I've selected the Xcode project, target, and used the search bar to limit the settings being shown:

Info.plist setting

Finally, check that your project is including the info.plist file from the right location.

Info.plist location

share improve this answer
 
   
Thanks I put relative path but still got problem please see my update. –   user310291  Mar 27 '12 at 0:33
   
You missed the part of the log with the error. :) –   Steven Fisher  Mar 27 '12 at 0:41
   
Oh, did you mean the same error? Well, the other thing it could be is the relative path of the Info.plist. That's in Supporting files. I'll update tne answer accordingly. –   Steven Fisher  Mar 27 '12 at 0:56
   
I check that too and path is correct: I can open its directory clicking on the arrow shown on the right panel. I really don't understand where he keeps memory of a path that doesn't exist. –   user310291  Mar 27 '12 at 13:02 
1 
It might be time to use a text editor on the project files and see if there's any absolute paths inside. I would not change them there, just use it for inspection. Search for "/Users". –   Steven Fisher  Mar 28 '12 at 17:08

Select your project Target go to Build Phase, then select "Copy Bundle Resources", you would see red highlighted file references just remove those references, again add all those files. Now perform clean and build.

For a safety check just verify the Info.plist file path in "Build Settings"> Packaging section.

Warning : Never add Info.plist in "Copy Bundle Resources" build phase in your iOS project.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值