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

Technical Q&A QA1649

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

Important: This document is no longer being updated. For the latest information about Apple SDKs, visit the documentation website.

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 the Copy Bundle Resources build phase as shown in Figure 1.

Figure 1 Remove Info.plist from the Copy Bundle Resources build phase.

image

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

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

你可能感兴趣的:(WARNING: The Copy Bundle Resources build phase contains this target's Info.plist file 'Info.plist'.)