[Xcode 10] How to solve Multiple commands produce error

Tadashi Shigeoka ·  Tue, January 15, 2019

I’ll introduce how to solve the Multiple commands produce error that occurs in Xcode 10.

Error: Multiple commands produce details

After updating to Xcode 10 and building, the following Error: Multiple commands produce error message was displayed.

Showing Recent Messages
:-1: Multiple commands produce '/Users/myname/Library/Developer/Xcode/DerivedData/myapp-xxx/Build/Products/Debug-iphonesimulator/myapp.app':

1) Target 'myapp' has create directory command with output '/Users/yourname/Library/Developer/Xcode/DerivedData/myapp-xxx/Build/Products/Debug-iphonesimulator/myapp.app'

2) That command depends on command in Target 'myapp': script phase "[CP] Copy Pods Resources"

(Solution) Change to Legacy Build System

  1. From the Xcode app menu, click File > Workspace Setting...
  2. Change Build System to Legacy Build System

That’s all from the Gemba where I solved the Multiple commands produce error in Xcode 10.

Reference Information