Multiple commands produce '/Users/abc/Library/Developer/Xcode/DerivedData/MyProject-cworwzaxajsmfkcfvourofovbggd/Build/Products/QA-iphonesimulator/MyProject.app':
1) Target 'MyProject' has create directory command with output '/Users/abc/Library/Developer/Xcode/DerivedData/MyProject-cworwzaxajsmfkcfvourofovbggd/Build/Products/QA-iphonesimulator/MyProject.app'
2) That command depends on command in Target 'MyProject': script phase “[CP] Copy Pods Resources”
It seems like a script in Copy pods resources
is conflicting with the normal build command. I have tried all the available solutions
- Removing redundant files from
copy bundle resources
. - Updating cocoapods.
- Changing
product module
name underBuild settings
to a unique one. - Removed info.Plist from
Copy Bundle Resources
Temporary Fix: Xcode > File > Workspace Settings > Build System > Choose "Legacy Build System"