error: Multiple commands produce '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist':
1) Target 'OptimalLive' has copy command from '/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Info.plist' to '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist'
2) Target 'OptimalLive' has copy command from '/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Server/Masonry/Info.plist' to '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist'
3) Target 'OptimalLive' has process command with input '/Users/uesr/Desktop/workSpace/SEALIVE/SeaLive1.1/OptimalLive/Info.plist'
running the code in Xcode9 works, but results in an error in Xcode10.
Go to Xcode -> File ->Workspace Settings. You will find one pop up like.
Select "Legacy Build System" from Build System tag. Press on "Done"
Note:- Make sure clear your project with "cmd+shift+alt+k" and "Derived Data"
Build your project it will work charm :)
Moving to Xcode 10, errors like
can be solved as follows:
Go to
Xcode->File->Workspace/Project Settings-> Build System -> Legacy Build System
.I had the same issue with a plist. Turns out I had two copies of it, one was empty and one was in my localized resources folder. Removing one of them (the empty one) solved the issue.
If you check your error, lines 1) and 2) have different paths. You likely have this file defined twice in your copy phase.
Check your target properties, Build Phases, Copy Bundle Resources, and look for a duplicate info.plist. Figure out which path is incorrect and remove it. (You'll probably want to delete it from the filesystem also.)
My issue was in Xcode 10 being run in Mojave, and while trying to run unit tests that I wrote before updating to XCode 10.
In my case, I had this issue while running my "TestTarget" target. To resolve, I had to delete one of the target dependency (in TestTarget > build phases > Target Dependencies) since I had two other targets besides my "TestTarget" and both were running the same script and creating/copying files at a certain point.
And that conflicted with what was mentioned in Build System Release Notes for Xcode 10 here:
None of the solutions proposed here worked for me. This was particularly due to CocoaPods. I was previously using Cocoapods 1.3.1. Simply upgrading to 1.5.3 didn't resolve the issue right away.
The steps I followed were:
pod install
In my case an Info.plist file was scooped up from one of my Cocoapods. Deleted it and solved the problem.