Xcode 无法打开 Info.plist -- 错误提示“没有这样的文件"; [英] Xcode can't open Info.plist -- error says "there is no such file"

查看:52
本文介绍了Xcode 无法打开 Info.plist -- 错误提示“没有这样的文件";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我切换到 Xcode 4 并加载了我的项目,它在 Xcode 3 中完美运行.当我运行它时,我收到一条错误消息:

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:

无法打开文件Info.plist",因为没有这样的文件.

The file "Info.plist" couldn’t be opened because there is no such file.

我在 Xcode 中查看了该文件,它就在那里.那为什么打不开呢?

I have looked at the file in Xcode and it is there. So why can't it be opened?

推荐答案

该文件存在于您的 Xcode 项目文件夹中是不够的.您是否已验证在您的应用程序目标的构建设置中正确引用了该文件,以便将其正确复制到应用程序包中?它与标准资源并不完全相同(即,它不是在目标成员资格复选框集中成为目标的成员)而是构建设置,因为它在格式正确的包中很重要.

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.

导航到项目(在项目导航器中选择它),在目标列表中选择应用程序目标,然后单击构建设置选项卡.在打包"部分下,确保Info.plist 文件"已正确设置为位置/文件名.

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.

这篇关于Xcode 无法打开 Info.plist -- 错误提示“没有这样的文件";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆