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

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

Q:  Why am I getting "WARNING: The Copy Bundle Resources build phase contains this target's Info.plist file 'Info.plist'"? And how do I fix it?

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

Figure 1  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.

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

 

posted @ 2014-04-16 08:29  ygm900  阅读(2261)  评论(0)    收藏  举报