Xcode 4. 为什么我重命名的项目找不到它的 Info.plist 文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6612522/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Xcode 4. Why Can't My Renamed Project Find It's Info.plist File?
提问by dugla
Under Xcode 4 I renamed a project from Foo to Bar. The former Foo-Info.plist is renamed as Bar-Info.plist. The renamed file exists. On disk and in the project. All should be cool. All is not cool.
在 Xcode 4 下,我将一个项目从 Foo 重命名为 Bar。之前的 Foo-Info.plist 被重命名为 Bar-Info.plist。重命名的文件存在。在磁盘和项目中。一切都应该很酷。一切都不酷。
When I compile I get this:
当我编译我得到这个:
could not read data from '/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/Users/PATH/TO/Bar-Info.plist': The file “Bar-Info.plist” couldn't be opened because there is no such file.
无法从'/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/Users/PATH/TO/Bar-Info.plist'读取数据:文件“Bar-Info.plist”不能被打开,因为没有这样的文件。
The file does exist in the path shown as well as in the build settings. Is there some cached data I need to purge to unwedge this.
该文件确实存在于显示的路径以及构建设置中。是否有一些我需要清除的缓存数据来解除这个。
回答by Richard
XCode is looking in the wrong folder for your Info.plist. Check the Build Setting for Info.plist File; make sure there aren't any qualifiers to the file name.
XCode 正在为您的 Info.plist 查找错误的文件夹。检查 Info.plist 文件的构建设置;确保文件名没有任何限定符。