Fix: Copy Bundle Resources Contains Info.plist Warning in Xcode

Written by

in

Quick answer: Xcode automatically processes the Info.plist file specified in the INFOPLIST_FILE build setting, so adding it to the Copy Bundle Resources build phase creates a duplicate copy. Remove the Info.plist from Copy Bundle Resources in the Build Phases tab to resolve the warning.

Why this happens

Xcode uses the INFOPLIST_FILE build setting to locate and process your target’s Info.plist during the build. When you add the same Info.plist file to the Copy Bundle Resources build phase, Xcode attempts to copy it a second time into the app bundle. This duplication triggers the warning because the build system detects the same file being handled by two different mechanisms.

The warning commonly appears after manually dragging an Info.plist into the project navigator with “Add to targets” checked, or when migrating projects between Xcode versions where the build phase membership was preserved incorrectly.

Each target should have exactly one Info.plist referenced by INFOPLIST_FILE, and that file must not appear in Copy Bundle Resources.

How to fix it

1. Remove Info.plist from Copy Bundle Resources (recommended)

  1. Open your project in Xcode and select the project file in the navigator.
  2. Choose the target that shows the warning.
  3. Open the Build Phases tab.
  4. Expand Copy Bundle Resources.
  5. Locate the Info.plist file (often named MyApp-Info.plist or similar).
  6. Select it and click the – (minus) button to remove it from the phase.
  7. Clean the build folder (Product → Clean Build Folder or Shift-Command-K) and rebuild.

The warning should disappear because Xcode now handles the Info.plist solely through the INFOPLIST_FILE setting.

2. Re-add Info.plist without target membership (alternative)

If the file was added with target membership enabled:

  1. In the project navigator, select the Info.plist file.
  2. Press Delete and choose Remove Reference.
  3. Drag the Info.plist back into the navigator.
  4. In the dialog, uncheck “Add to targets” and leave Destination unselected (or choose “Create groups”).
  5. Verify the target’s Build Settings → Info.plist File (INFOPLIST_FILE) points to the correct path (e.g., MyApp/Info.plist).
  6. Clean and rebuild.

This ensures the file exists in the project for editing but isn’t copied by the build phase.

How to prevent it

  • Never check “Add to targets” when adding an Info.plist file to the project.
  • Keep Info.plist out of Copy Bundle Resources; let INFOPLIST_FILE manage it.
  • When duplicating targets, inspect the new target’s Build Phases and remove any Info.plist entries.
  • Use File Inspector → Target Membership to confirm Info.plist has no checkboxes enabled.

FAQ

Does removing Info.plist from Copy Bundle Resources break the app bundle?

No. Xcode automatically processes the file referenced by INFOPLIST_FILE, applies substitutions (like $(PRODUCT_NAME)), and places the final Info.plist into the bundle. The Copy Bundle Resources phase is for other resources such as images, JSON files, or plists that aren’t the main Info.plist.

What if I have multiple Info.plist files for different configurations?

Each target still uses a single INFOPLIST_FILE path. You can use build setting substitutions (e.g., MyApp/Info-$(CONFIGURATION).plist) or set the path per configuration in the build settings editor. None of these files should be in Copy Bundle Resources.

The warning persists after removal. What else could cause it?

Check for a Run Script or Copy Files phase that references the Info.plist, or a CocoaPods / SPM post-install script that re-adds it. Search the project (Shift-Command-F) for the Info.plist filename to locate any stray references.

Sources & credits

Parts of this guide are adapted from content licensed under CC BY-SA 4.0; this article is shared under the same license.