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

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


https://developer.apple.com/library/content/qa/qa1649/_index.html

Excerpt:

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

enter image description here

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.

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.


To fix in xcode 4:

1) Remove the reference to your info.plist file by selecting it and hitting delete.

2) Add the info.plist file again but choose no destination and uncheck the "add to targets" option.


In case anyone runs into this with Xcode 3, to fix it click on the .plist file in the left column under "Groups and Files", and in the upper right area, uncheck the box next to the .plist file's name in the column under the bullseye icon. You'll need the editor zoomed out (View -> Zoom Editor Out) to show the checkboxes.