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

一、问题

今天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解决Warning: The Copy Bundle Resources build phase contains this target's Info.plist file 'Info_第1张图片

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.




你可能感兴趣的:(XCode使用技巧,iPhone使用)