警告:复制包资源建设阶段包含此目标的Info.plist文件 [英] Warning: The Copy Bundle Resources build phase contains this target's Info.plist file

查看:211
本文介绍了警告:复制包资源建设阶段包含此目标的Info.plist文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我分开的项目分成两个版本,并给予他们每个人的的plist 文件。一切工作正常,但我不断收到此版本警告:

I've separated a project into two builds and given each of them a plist file. Everything works fine, but I keep getting this build warning:

警告:复制包资源建设阶段包含此目标的
  Info.plist文件'MyApp的-Info.plist中

Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'MyApp-Info.plist'

我得到这个当我尝试建立 MyApp的。建设第二目标给出了(在警告与 SecondTarget-Info.plist中)同样的错误。我不知道为什么它是一个警告,因为我的希望的构建来包含的.plist 文件。每个的.plist 文件都有一个目标的成员(为自己的版本)。

I get this when I try to build MyApp. Building for the second target gives the same error (with SecondTarget-Info.plist in the warning). I'm not sure why it's a warning, since I want the build to contain that .plist file. Each of the .plist files have one target membership (for their own build).

这是什么意思的警告?有没有什么办法让它走?

What does this warning mean? Is there any way to make it go away?

推荐答案

<一个href=\"http://developer.apple.com/iphone/library/qa/qa2009/qa1649.html\">http://developer.apple.com/iphone/library/qa/qa2009/qa1649.html

摘录:

如图,因为你可能添加你的Info.plist文件到您复制包资源建设阶段您收到此警告

You are getting this warning because you probably added your Info.plist file to your Copy Bundle Resources build phase as shown in Figure

该INFOPLIST_FILE构建设置指定与目标关联的Info.plist的名称。当建立一个目标,X code读取此版本设定,并复制引用的Info.plist到您的应用程序包。由于X code自动处理的Info.plist,你不应该将它添加到您的复制包资源建设阶段或使其目标成员。

The INFOPLIST_FILE build setting specifies the name of the Info.plist associated with your target. When building a target, Xcode reads this build setting and copies the referenced Info.plist into your application bundle. Because Xcode automatically processes the Info.plist, you should not add it to your Copy Bundle Resources build phase or make it a target member.

要解决此警告,请从复制包资源你的Info.plist建设阶段,如图1,然后点击删除( - )按钮以从相位删除

To resolve this warning, select your Info.plist from the Copy Bundle Resource build phase as shown in Figure 1, then click the Remove (–) button to delete it from the phase.

这篇关于警告:复制包资源建设阶段包含此目标的Info.plist文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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