Maaz Zindani

Loading the index…

↑↓ move↵ openesc close4072 pages
Flutter and app store releases

Xcode refuses to build because two steps write the same output file

Errorerror: Multiple commands produce '…/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist'

Short answer

Two build steps of one target are set to create the same file in the product folder, so Xcode stops. The two note lines under the error name both steps. The usual pairs are Info.plist listed in Copy Bundle Resources besides the normal Info.plist processing, or one file copied by two copy phases to the same place. Remove one of the two.

  • Applies to Xcode 26.6, macOS 26 on Apple silicon, iOS Simulator SDK 26.5
  • Updated
  • By Maaz Zindani, Senior Software Engineer

Fix it fast

  1. 1Find out which cause you have

    Read the two note lines under the error in the build log. Each one names a step (copy command, process command, script, or a build phase) and the same output path. The step names tell you which cause below applies. From the terminal, print only that block.

    xcodebuild -workspace ios/Runner.xcworkspace -scheme Runner -sdk iphonesimulator build 2>&1 | grep -A4 "Multiple commands produce"
  2. 2Match what you see, then jump to its fix

    1. 1One note says has copy command from '…/Info.plist' and the other says has process command with output '…/Info.plist'Info.plist is also listed in Copy Bundle ResourcesFix
    2. 2Both notes say has copy command from the same source file to the same destination under the .appOne file is copied by two copy phases to the same placeFix

What does the error look like?

  • error: Multiple commands produce '…/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist'
  • note: Target 'Runner' (project 'Runner') has copy command from '…/Runner/Info.plist' to '…/Runner.app/Info.plist'
  • note: Target 'Runner' (project 'Runner') has process command with output '…/Runner.app/Info.plist'

Cause 1 of 2

Info.plist is also listed in Copy Bundle Resources

1Check

Xcode already builds the app's Info.plist from the INFOPLIST_FILE setting and writes it into the bundle. If the same file also sits in the target's Copy Bundle Resources phase, a second step copies it to the same place. In a project file that entry reads Info.plist in Resources. I reproduced this error by adding the entry to a new Flutter iOS project on Xcode 26.6.

grep -n "Info.plist in Resources" ios/Runner.xcodeproj/project.pbxproj
xcodebuild -project ios/Runner.xcodeproj -target Runner -showBuildSettings | grep INFOPLIST_FILE

2Fix

In Xcode select the target, open Build Phases, expand Copy Bundle Resources and delete the Info.plist row with the minus button. Keep INFOPLIST_FILE pointing at the file. Only the entry in that phase goes; the file stays in the project.

# after deleting the row, this prints nothing
grep -n "Info.plist in Resources" ios/Runner.xcodeproj/project.pbxproj

3Verify

The build no longer prints the error and the built app still has its Info.plist.

xcodebuild -project ios/Runner.xcodeproj -scheme Runner -sdk iphonesimulator build 2>&1 | grep -c "Multiple commands produce"

Confirmed by developer.apple.com

Did this fix it?

Cause 2 of 2

One file is copied by two copy phases to the same place

1Check

A file in Copy Bundle Resources is copied to the bundle's resources folder. If the same file is also in a Copy Files phase whose destination is Resources (or in two Copy Files phases with the same destination), both write one path. I reproduced this with a JSON file listed in both phases on Xcode 26.6. Two different files that only share a name gave a duplicate output file warning in my test, not this error.

grep -n "PBXCopyFilesBuildPhase\|PBXResourcesBuildPhase" ios/Runner.xcodeproj/project.pbxproj
grep -n "data.json" ios/Runner.xcodeproj/project.pbxproj   # replace data.json with the file in the note

2Fix

Open Build Phases for the target named in the note and keep the file in only one phase: delete the extra Copy Files phase or remove the row from it. If you need the file in a subfolder, keep the Copy Files phase, set its Subpath, and remove the row from Copy Bundle Resources.

# one entry per file; the file name must appear in a single phase block
grep -n "data.json in" ios/Runner.xcodeproj/project.pbxproj

3Verify

The build succeeds and the file is in the app bundle once.

xcodebuild -project ios/Runner.xcodeproj -scheme Runner -sdk iphonesimulator build 2>&1 | grep -E "Multiple commands produce|BUILD (SUCCEEDED|FAILED)"

Confirmed by developer.apple.com

Did this fix it?

How do I stop it coming back?

  • Never drag Info.plist into Copy Bundle Resources; Xcode adds the file to the target through INFOPLIST_FILE.
  • When adding a file to a target, tick only the targets that need it, and check Build Phases afterwards.
  • Treat any new Copy Files phase as the only owner of the files it lists; remove those files from Copy Bundle Resources.
  • Fix the first Multiple commands produce error only; later ones often disappear with it.

Sources

How was this page made?

I drafted this page with AI assistance from the official documents listed under Sources. Every cause above names the document that confirms it. I have not reproduced this fix on a machine of my own yet, so read it as documented guidance, not a test report. Found a mistake? Tell me.

Which stack is behind this page?

Related fixes

Mobile apps

App record creation fails because you lack permission

You cannot add a new app in App Store Connect as a Developer or limited user

Only the Account Holder, an Admin or an App Manager can create an app record, and Apple blocks it until the Account Holder has signed the latest agreement.

3 causes, each with a fix

Next step

Want this handled for good?

I look after servers, apps and releases end to end. Tell me what keeps breaking.