xcode 错误:警告:复制捆绑资源构建阶段包含此目标的 Info.plist 文件“UserDefinedLocalization-Info.plist”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5550976/
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
Error : Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'UserDefinedLocalization-Info.plist'
提问by Rahul Rana
When I run the Application then warning display below,
当我运行应用程序然后警告显示如下,
Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'UserDefinedLocalization-Info.plist'.
警告:复制捆绑资源构建阶段包含此目标的 Info.plist 文件“UserDefinedLocalization-Info.plist”。
回答by gardarh
I had this issue after I rearranged the underlying file structure of my project. Xcode4 has moved things around though and most online help to this problem is Xcode 3 specific, so this is how you solve this in Xcode 4:
重新排列项目的底层文件结构后,我遇到了这个问题。Xcode4 已经改变了一些东西,并且大多数针对此问题的在线帮助都是特定于 Xcode 3 的,因此这就是您在 Xcode 4 中解决此问题的方法:
- Click the project icon in the Project Navigator (the blue root icon)
- In your main pane menu you should be able to choose between your project or targets, select the target
- Select "Build Phases" in the top menu
- Open the "Copy bundle resources" item
- Remove your plist file from there (your plist file should not be copied as a part of the bundle)
- 单击项目导航器中的项目图标(蓝色根图标)
- 在主窗格菜单中,您应该能够在项目或目标之间进行选择,选择目标
- 在顶部菜单中选择“构建阶段”
- 打开“复制捆绑资源”项
- 从那里删除您的 plist 文件(您的 plist 文件不应作为包的一部分进行复制)
回答by Matthias Bauch
In xcode, right click the UserDefinedLocalization-Info.plist
file, select Get Info
. Go to the Targets
tab and remove the checkmark in front of your target.
在 xcode 中,右键单击该UserDefinedLocalization-Info.plist
文件,选择Get Info
. 转到Targets
选项卡并删除目标前面的复选标记。
The info.plist is a special file and must be treated in a special way. It's not allowed to add it to the app in the normal way.
info.plist 是一个特殊文件,必须以特殊方式处理。不允许以正常方式将其添加到应用程序中。