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

来源:互联网 发布:js flowchart流程图 编辑:程序博客网 时间:2024/05/17 23:13

一、问题

今天Xcode修改工程名后,重新添加.plist及.pch文件后。

编译出现下面提示:

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


二、解决:

这是由于在Copy Bundle Resources(TARGETS->build phase)中添加了info.plist造成,去掉就可以解决。


==============================================================

参考:

http://blog.csdn.net/mideveloper/article/details/7790186

http://blog.sina.com.cn/s/blog_7b9d64af0101aq8g.html


From the Copy Bundle Resources build phase

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 referencedInfo.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.

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.




原创粉丝点击