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

来源:互联网 发布:青岛淘宝网店代运营 编辑:程序博客网 时间:2024/05/16 19:23

遇到这个问题 copy app document mark害羞

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.

0 0
原创粉丝点击