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 there is a error in Xcode10.
This question is related to
info.plist
xcode10
Remove the damn Assets file
Solution -> Open target -> Build phases > Copy Bundle Resources and remove Assets from there.
Sometimes the reason for this problem is that you have multiple targets that have different iOS deployment target. just check that your targets(for example your main app target and your extensions) have the same iOS deployment target.
Had similar issue but with .swiftdoc files.
I have extensions and unit test targets in project. And they had same "Product Module Name" (PRODUCT_MODULE_NAME in Build Settings) as application. After making names unique issue gone.
While checking the build log, I noticed a warning:
note: Using new build system
note: Planning build
note: Constructing build description
Build system information
warning: The Copy Bundle Resources build phase contains this target's Info.plist file '/Users/<redacted>/Repositories/Whitesmith/optimize-ios/Carthage/Checkouts/WSStatusBarNotification/Miscellaneous/Info.plist'. (in target 'JDStatusBarNotification')
So, if that's your case then just go to your target:
info.plist
.I had multiple copies of same file. Simply, keep one copy and remove all remaining. Clean Build, and issue sorted.
One of my CocoaPods was oudated and caused the issue. Did an pods update and it worked fine.
I believe it may have been the LivePerson SDK
Same here but here is the latest solution May 2020
It looks like a bug or some new issue with new Xcode version.
Error response is:
Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65.
Detailed response:
Build system information error: Multiple commands produce '/path/of/the/project/ios/build/NameOfTheProject/Build/Products/Debug-iphonesimulator/NameOfTheProject.app/Zocial.ttf':
1) Target 'NameOfTheProject' (project 'NameOfTheProject') has copy command from '/path/of/the/project/NameOfTheProject/node_modules/react-native-vector-icons/Fonts/Zocial.ttf' to '/path/of/the/project/NameOfTheProject/ios/build/NameOfTheProject/Build/Products/Debug-iphonesimulator/NameOfTheProject.app/Zocial.ttf'
2) That command depends on command in Target 'NameOfTheProject' (project 'NameOfTheProject'): script phase “[CP] Copy Pods Resources”
Build system information error: Multiple commands produce '/path/of/the/project/ios/build/NameOfTheProject/Build/Products/Debug-iphonesimulator/NameOfTheProject.app/SimpleLineIcons.ttf':
1) Target 'NameOfTheProject' (project 'NameOfTheProject') has copy command from '/path/of/the/project/NameOfTheProject/node_modules/react-native-vector-icons/Fonts/SimpleLineIcons.ttf' to '/path/of/the/project/NameOfTheProject/ios/build/NameOfTheProject/Build/Products/Debug-iphonesimulator/NameOfTheProject.app/SimpleLineIcons.ttf'
2) That command depends on command in Target 'NameOfTheProject' (project 'NameOfTheProject'): script phase “[CP] Copy Pods Resources”
...
That response repeat for each .ttf file used by the library.
I had to temporary react-native unlink react-native-vector-icons
, and the project build again, but with not icons.
OK so for anyone who hadn't found correct answer here because it has nothing to do with info.plist...
I ran into this problem while I was developing a macOS app without CocoaPods or Carthage, just with SPM packages, manually dragging xcodeproj
s into workplace.
When I was using only one dependency (it was using Swift-NIO from within), everything was OK, but when I added one more one more dependency with overlapping subdeps, I got this nasty problem.
The solution is to try to compile all major dependencies separately (it would fail due to unexisting checkout folders within respective .build
folders, and this is most probably happened because you put your pkgs in edit mode (swift package edit YourPkg ...
).
You just unedit
your pkgs, and force all dependencies to compile successfully. After that you must make sure that your linked binaries within main target aren't overlapped (I'm not sure it's really necessary, but just in case).
After that everything should be working just great :)
This basically means you have multiple files named Info.plist
;
Usually it's fine, but accidentally yours files are set to the same Target Membership. So the fix is: click each each file and check their Target Membership on the right, make sure they don't overlap.
Solution 1:
In Xcode, go to File ? Project/Workspace settings.
? Change the build system to Legacy Build system.
Solution 2 :
Open target ? Build phases ? Copy Bundle Resources ? remove info.plist from there. ? you will have to remove the plist from the Extensions too (if any).
Solution 3:
If you use CocoaPods you may want to try deintegrate the pods and install again.
Commands:
1) pod deintegrate
2) pod install
Issue: Faced Error on creating xcodebuild archive for Cocoapod Project in the command line.
Error in Console: error: Multiple commands produce '/Users/xxxx/Library/Developer/Xcode/DerivedData/...':
Steps that resolved this issue:
Description with image:
Step 1:
Step 3:
Step 4-6:
This answer is deprecated - XCode 12 has deprecated the Legacy Build System, it will be removed in a further release
I'm using XCode 11.4 Can't build old project
Xcode => File => Project Settings => Build System => Legacy Build System
In my case, I added GoogleService-Info.plist
file twice disappointedly to my Firebase project.
I delete first added GoogleService-Info.plist
and problem solved.
For people who rely on names to be the same for Swift header imports. (Ex: header file name: #import "MyApp-Swift.h"
):
This header file's name is actually determined by ${SWIFT_MODULE_NAME}-Swift.h
where SWIFT_MODULE_NAME
uses PRODUCT_MODULE_NAME
as the default value.
Moreover, there is a build setting that is project-wide called: SWIFT_OBJC_INTERFACE_HEADER_NAME
“Objective-C Generated Interface Header Name” and it's default value is ${SWIFT_MODULE_NAME}-Swift.h
. By changing this value to MyApp-Swift.h
all targets within our aggregate build were able to share the same header name and from them we were able to change the PRODUCT_MODULE_NAME
value.
In my case (I'm using Carthage) the problem with
error: Multiple commands produce
1) Target *** has copy command from
2) That command depends on command in Target ***: script phase “Run Carthage Script”
was caused due to importing frameworks both to Embeded frameworks and Run carthage script phases in Build Phases configuration
These 2 phases copy frameworks to derrived data, so Xcode see duplicated files and print these errors with warning:
ignoring duplicated output file: (in target ***)
After removing duplicated frameworks from Embeded frameworks phase everything is working correctly.
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:
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:
It is an error for any individual file in the build to be produced by more than one build command. For example, if two targets each declare the same output file from a shell script phase, factor out the declaration of the output file into a single target.
New UPDATE after I updated from Xcode 10.1 to 10.2
Similar issue again showed up after I updated to Xcode 10.2. I have multiple targets in by project: Target1
and Target2
, and I solved this issue by:
Edit Scheme > Build
and Target1
under Test
since I knew Target2
imported Target1
Also to note here, Target2
's checkbox is to remain checked under Test
In case you're getting this error with React Native, specifically with libyoga.a
, check out this Github comment
One option which solved my issue is to changing build system to legacy build system. Please follow the following steps in Xcode 10+.
Here I have written a detailed article on the problem & its solution. Xcode Error: Multiple commands produce
In my case, I had the same custom Public Header Folder Path for two different static libs. One was for a main app another for a watch app. Changed the path for the watch app and now everything is fine.
In my case, I had imported files from another project and had the same class in two locations.
I had the following related error message:
When I copied the error, it turned out to copy a lot MORE textual information, and when I read through the dump, I came to the relevant line:
:0: error: filename "EventNode.swift" used twice:
which was followed by the locations and allowed me to eliminate the problem.
In the process, I found out what needs to be in 'Copy Bundle Resources':
Actually you can use legacy build system but you wont get the speedy build times i.e) u won't get the new build systems features which have been made default in XCode10 It is just a workaround for not getting the latest build features https://developer.apple.com/documentation/xcode_release_notes/xcode_10_release_notes/build_system_release_notes_for_xcode_10
Steps:
If your app is generating the error related to the multiple .app
files then removing the .plist
files from "Copy bundle Resources" WILL NOT WORK.
If the error is related to .app file then follow the following steps
Select the Target.
Go to Build Phases
tab.
Output Files
General
Tab in Linked Frameworks and Libraries
that Xcode mentioned in the error.Keep adding these libraries (that Xcode ask through compile errors) in Linked Frameworks and Libraries
until the code compiles successfully.
Hope this helps.
In my case, the problem comes from the podfile. I must add my test project to the podfile:
target 'MyApp' do
pod 'Firebase'
target 'MyAppTests' do
inherit! :search_paths
pod 'Firebase'
end
end
After that, I need to execute:
pod update
In my case an Info.plist file was scooped up from one of my Cocoapods. Deleted it and solved the problem.
Try this as well. Xcode->File->Project Settings-> Build System -> Legacy Build System.
I was experimenting with Core Data. I built a data model for a simple checklist program and generated the NSManagedObjects. When I compiled the project I got the following error:
error: Multiple commands produce '/Users/myUSerName/Library/Developer/Xcode/DerivedData/myCoreDateExperiment-gzbslaqdwglkzxemijpdqmizgyzc/Build/Intermediates.noindex/ myCoreDateExperiment /Debug-iphonesimulator/ myCoreDateExperiment.build/Objects-normal/x86_64/CheckListItem+CoreDataProperties.o':
1) Target ' myCoreDateExperiment ' (project ' myCoreDateExperiment ') has compile command for Swift source files
2) Target ' myCoreDateExperiment ' (project ' myCoreDateExperiment ') has compile command for Swift source files
The problem was the data model (CheckList.xcdatamodeld in my case) was in the "Compile Sources" list. The project compiled cleanly when I removed it from the list.
EDIT
As @WilliamT. explains in the comments, you need the xcdatamodeld in the compile list. Instead, go to your entities within the xcdatamodeld file. Select the models that are erroring, expand the left panel, and change the field of "Codegen" to "Manual/None".
Synopsis: You may have both automatically-generated and manually-generated Core Data managed object class files.
This answer applies if the first line of the error refers to a Foo+CoreDataProperties.o or Foo+CoreDataClass.o file. Example:
error: Multiple commands produce '/Users/me/Library/Developer/Xcode/DerivedData/MyApp-uebslaqdwgldkjemijpdqmizgyzc/Build/Intermediates.noindex/ MyApp /Debug-iphonesimulator/ MyApp.build/Objects-normal/x86_64/Foo+CoreDataProperties.o':
1) Target ' MyApp ' (project ' MyApp ') has compile command for Swift source files
2) Target ' MyApp ' (project ' MyApp ') has compile command for Swift source files
The root cause can be seen by expanding the Compile Swift Source Files section of the Build Transcript. For example:
<unknown>:0: error: filename "Address+CoreDataClass.swift" used twice: '/Users/myUserName/Projects/Jnky/Foo+CoreDataProperties' and '/Users/jk/myUserName/Developer/Xcode/DerivedData/MyApp-uebslaqdwgldkjemijpdqmizgyzc/Build/Intermediates.noindex/MyApp.build/Debug/MyApp.build/DerivedSources/CoreDataGenerated/Jnky/Foo+CoreDataProperties.swift'
The first file mentioned there is a source file in your project directory, which someone generated by selecting your data model in the Project Navigator and clicking in the menu Editor > Create Managed Object Subclass. This feature was added in Xcode 7 or so.
The second file is a file of the same name but which is buried in Xcode's DerivedData
. This file is generated automatically by Xcode during every build if the data model (.xcdatamodeld
) file is included in the target's Compile Sources build phase. This feature was added in Xcode 9 or so. Zero, one or two files are generated for each entity/class, depending on the setting of the Codegen popup. That popup is in the Data Model Inspector when you select an entity while editing your data model…
The settings are:
So you see the problem occurs when a developer (like me) who is accustomed to the older Xcode begins a project in a newer Xcode. We think that we need to use the Create Managed Object Subclass menu item, which we do, to create the files we can see in the Project Navigator while not realizing that our settings in the Codegen popup are causing Xcode to create duplicate files, which Apple "cleverly" does not show in the Project Navigator, because they don't trust developers to read and heed the comment in the header // This file was automatically generated and should not be edited.
You can disable all automatic Codegen for a data model with just one setting:
.xcdatamodeld
file).Here, you go all in on the newer way.
With this solution, your class definitions are generated automatically from the data model on each build. You can't even see them. It is Core Data Magic, nice and simple for beginners.
But Solution 2 is no good if you really want to add non-managed properties. (Objective-C does not allow properties to be added in categories, and Swift does not allow stored properties to be added in extensions.) So in most real-world apps, you probably want to go halfway between Solutions 1 and 2…
(Acknowledgments to the answer by Positron. My answer here explains why Positron's answer (my Solution 1) works, and adds Solution 2 and Solution 3.)
In my case cleaning deprived data and build settings(in this order) , and restarting Xcode and Simulator helped.
I tried to do Solution -> Open target -> Build phases > Copy Bundle Resources , but it appeared there again. Cleaning deprived data helped. in the error it shows where is the duplicate, in my case it said it was in my app bundle and in deprived data.
Try this Its Working :
In Xcode, go to File->Project/Workspace settings.
Change the build system to Legacy Build system.
We spent months looking into this issue with several our of child projects. We found that AVAILABLE_PLATFORMS
was being set to "appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator"
which was causing multiple platforms to be built, which would lead to the "Multiple commands produce error." For instance, "Foo" platform was building for both iOS and TVOS, and thus multiple build commands were creating a Foo.framework
file.
As soon as we set
AVAILABLE_PLATFORMS = iphoneos iphonesimulator
in our root xcconfig
file, this problem went away all child projects.
Run
xcodebuild -project FitbitMobile.xcodeproj -target "FitbitMobile" -showBuildSettings > BuildSettings.txt
See if the output is being set to what you'd expect. If you're an iOS app and you're building for tvOS, you'll want to update your config.
I had this problem when I had a file with the same name in two different targets. For some reason one of those files I had part of both targets. So basically I had two files. And both of those files belonged to one target.
It makes sense that a target can only have one file name per target, so just unchecking the target member box for the file that wasn't related to the main target fixed the issue.
If the issue with your error is .app/ (and not .app/Info.plist) see this answer here: xcode 10 error: multiple commands produce - react native
1- Remove DerivedData For all Apps 2- Open Terminal 3- Update Pod Every thing Done
The multiple produce error was being triggered by a hidden file for me (.gitkeep) Look at your compile sources closely, I believe this file was in Compile Sources but it shows up as an empty row. It doesn't actually say the hidden file's name, but I deleted the blank row and it fixed the issue, so I suspect the project navigator doesn't show hidden files.
So the problem I was having is that I had accidentally included the Info.plist in the project settings -> Build Phases -> Copy Bundle Resources for my target.
If you are manually making your entity's CoreDataClass and CoreDataProperties, make sure you go to your xcdatamodel and set the Codegen in the inspector tab to "Manual/None". Xcode will automatically create a duplicate class for you if this is set as "Class Definition".
For dependency projects managed by cocoapods, solved the problem by providing a local podspec to exclude info.plist from sources. Take godzippa as an example
Podfile
pod 'Godzippa', :podspec => "venders/godzippa.podspec"
venders/godzippa.podspec
s.source_files = 'Sources/*.{h,m}'
error: Multiple commands produce '/Users/KunshtechNew/Library/Developer/Xcode/DerivedData/chat21-fgjaqebxysmggqfdnetggdbzfqih/Build/Products/Debug-iphonesimulator/Chat21.app/Base.lproj/Chat.strings':
1) Target 'chat21' (project 'chat21') has copy command from '/Users/KunshtechNew/Downloads/chat21-ios-demo-master/TildeskWidget/Chat21Core/Base.lproj/Chat.strings' to '/Users/KunshtechNew/Library/Developer/Xcode/DerivedData/chat21-fgjaqebxysmggqfdnetggdbzfqih/Build/Products/Debug-iphonesimulator/Chat21.app/Base.lproj/Chat.strings'
2) Target 'chat21' (project 'chat21') has copy command from '/Users/KunshtechNew/Downloads/chat21-ios-sdk-master 2/Chat21Core/Base.lproj/Chat.strings' to '/Users/KunshtechNew/Library/Developer/Xcode/DerivedData/chat21-fgjaqebxysmggqfdnetggdbzfqih/Build/Products/Debug-iphonesimulator/Chat21.app/Base.lproj/Chat.strings'
There can be 2 different solutions to get rid of this problem:
As We can see I was getting the same error.. in my case there was an extra copy of the folder Chat21Core in TildeskWidget folder ..This was creating issue.. So one of the possible solutions can also be just read the error entirely and try to find if there is any extra copy referenced from project or not.
Another simple solution I found when I face same type of issue for different project. This time I had to apply different solution.
pod deintegrate
from the project.pod install
and try to build the project.Hope this might work for you..
If you are getting this from the Ditto
command creating multiple instances of the same name (NOT the 'copy files' build phase
), you may have to change the Product Module Name
.
Build Settings
Product Module Name
We have a watch target and a few notification targets in our app, so I just put things like Extension
on the end of the module name.
I found this solution originally here: https://forums.developer.apple.com/thread/103913
After setting Xcode => File => Project Settings => Build System => Legacy Build System
I just removed duplicate files. That's it !!
In my case, Build archive error vs Xcode10
-1: Multiple commands produce '/Users/kk/Library/Developer/Xcode/DerivedData/react_carday_app-hjahojxsbvmmiyaklrhhuqljdfwv/Build/Intermediates.noindex/ArchiveIntermediates/react_carday_app/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libyoga.a': 1) Target 'yoga' has a command with output '/Users/kk/Library/Developer/Xcode/DerivedData/react_carday_app-hjahojxsbvmmiyaklrhhuqljdfwv/Build/Intermediates.noindex/ArchiveIntermediates/react_carday_app/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libyoga.a' 2) Target 'yoga' has a command with output '/Users/kk/Library/Developer/Xcode/DerivedData/react_carday_app-hjahojxsbvmmiyaklrhhuqljdfwv/Build/Intermediates.noindex/ArchiveIntermediates/react_carday_app/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/libyoga.a'
There should something like bellow in your Podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
if target.name == "yoga"
target.remove_from_project
end
end
end
and then run pod install
The duplication of Product Name
may also cause the same problem, especially when you are creating more than one extension target in a single workspace.
Make sure you also check Product Module Name
according to @Lirik 's answer.
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.)
It's worth noting that this error can be produced after auto generation of CoreData models where the Codegen is not set to Manual/None.
To correct this in Xcode 10 double click on your xcdatamodeId file and select each of your entities and set Codegen to Manual/None under Class in your Data Model Inspector.
My error was:
duplicate output file
'/Users/home/Library/Developer/Xcode/DerivedData/myAppName-fawptgabysjowicvpeqydjniuovo/Build/Products/Debug-iphoneos/myAppName.app/GoogleMaps.bundle' on task: PhaseScriptExecution [CP] Copy Pods Resources /Users/home/Library/Developer/Xcode/DerivedData/myAppName-fawptgabysjowicvpeqydjniuovo/Build/Intermediates.noindex/myAppName.build/Debug-iphoneos/myAppName.build/Script-32CCC25BF727B592A1784900.sh
I focused on the problem file being GoogleMaps.bundle
and the location of that file being in [CP] Copy Pods Resources
, and the fact that it specified it’s a duplicate output file
(I highlighted them in black above), it's the 4th step below
Make sure you do the following steps on a Duplicate Project
1- In the project navigator I went to the blue project icon
2- I choose Build phases
3- Under Build Phases I choose [CP] Copy Pods Resources
4- Under [CP] Copy Pods Resources
I went to Output Files
and underneath there I found the file that ended with GoogleMaps.bundle
. I selected it and pressed the minus sign to delete it. Make sure you go to Output Files and NOT Input Files
5- I did a clean shift+cmmd+k
and afterwards when I built the project the error was gone
The odd thing was even though the red error went away the yellow warning was still there but it worked :)
Commenting use_frameworks! in PodFile worked for me.
#use_frameworks!
Note: Did this on XCode 10.1, pod version 1.8.4
If you use CocoaPods you may want to try deintegrate the pods and install again. It works for me.
pod deintegrate
pod install
The issue was produced by some libRN...a files. I fixed it by removing some of them like libRNScreens.a and libRNGestureHandler.a from Build Phases -> Link Binary with Libraries since they were already being referenced from another libraries. Others had to be replaced by their Pod version like libRNDeviceInfo.a:
In my case I had a modified watch project where the app and the extension all had a info.plist
files (all named with the same name), to solve this I have renamed the files for the ios app I left it as info.plist
for the watch I have named it watch_info.plist
and so on
After that I have modified the 'project->target->build settings' under packaging info.pilst and modified the plist file name accordingly, that solved it for me
note that I saw in other places to changed the build system from new to legacy under project/workspace settings, Although it works - I do not recommend this as it causes other issues down the road.
Try all this option anyone of this 3 option will work for you, for sure
Option 1: Remove all files from
Target >> Build Phases >> Compile Sources
Target >> Build Phases >> Copy Bundle Resources
Option 2: Change the build system
Xcode->File->Project Settings-> Build System -> Legacy Build System
Option 3: remove and update existing pod
pod cache clean PromisesObjC
pod cache clean PromisesSwift
cd [your_project_dir]
rm -rf Pods/
rm Podfile.lock
pod update
I hope this will help you, Happy coding :-)
I using Carthage and Xcode 10.
My Solution is -> Project -> Target -> General ->
Remove the Frameworks added with Carthage from "Embedded Binaries"
usualy u have to add a script in Build Phases to strip the architecture for app store.
In Xcode 10 the script seems called always. So it copies the frameworks to the right place and you don't have to add them to the General Tab.
Note: if not set -> in Build Settings -> Search Paths -> Framework Search Paths -> set the path to the Framework u added with Carthage .... eg. "$(PROJECT_DIR)/Carthage/Build/iOS"
I had the same problem but where able to fix it by removing the associated .png's and the icon asset catalog and then build the app. That generated expected errors as assets were missing. After than I added everything again and build the app with no problems.
In my case, I've got my GoogleService-info.plist
file multiple copied, as it's included in both my main app and a share extension project.
The solution is to exclude this file from the extension project (by unchecking it from the Target in its File Inspector side window view); as I don't like the option to switch to Legacy Build System (which is also working for me).
For me the problem was tied to having the same file included in the bundle resources twice. Not sure how that happened, but I removed one of them and it compiled fine with the new build system.
My ProjectName.xcodeproj
had a valid and an invalid reference to a file with same name. Same filename in the project navigator, one filename was red, the other okay. I got rid of the invalid reference one (the red one), issue resolved.
Moving to Xcode 10, errors like
error: Multiple commands produce '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist':
can be solved as follows:
Go to Xcode->File->Workspace/Project Settings-> Build System -> Legacy Build System
.
I found the solution for this build error, for anybody else having the same issue with Xcode 10 build system, follow the following steps to fix it:
- In Xcode, go to File->Project/Workspace settings.
- Change the build system to Legacy Build system.
It will resolve the build issue with the new Xcode 10.
If you want to work with the new build system, then you can find the troubleshooting help from this apple Xcode help page.
Hope this helps!
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
This issue arose for me after adding a second part of the Fabric suite of SDKs to the app.
What actually happened was that the GoogleUtilies Framework was added twice to the Pods project
This would have been fine prior to Xcode 10 but Xcode 10 will complain if a file has two actions against it (in this case a copy action).
It's safe to remove the second framework.
My situation was similar to the Damo's one - some Products were added to the Pods project twice. The structure of my Podfile was:
# platform :ios, '11.0'
def shared_pods
use_frameworks!
pod 'SharedPod1'
end
target 'Target1' do
pod 'SomePod1'
shared_pods
end
target 'Target2' do
shared_pods
end
and all shared pods were added twice. Uncommenting of first line and then pod install
solved the problem.
Unfortunately none of these answers worked for me... here was the error I was seeing:
"Multiple commands produce '/Users/.../.../.../Frameworks/abcdef.framework"
Adding this line to the Podfile and doing a " Pod Install " was the ONLY thing that worked.
install! 'cocoapods', :disable_input_output_paths => true
I really hope this helps someone. I spent hours trying to fix this and finally got it.
Sometimes I just wish Xcode was as efficient as IntelliJ / Android Studio :(
Goodluck!
Search & Remove duplicate files those are produced from multiple commands.
Here, an extra Info.plist
file should be removed (In my case it was Contents.json
)
error: Multiple commands produce '/Users/uesr/Library/Developer/Xcode/DerivedData/OptimalLive-fxatvygbofczeyhjsawtebkimvwx/Build/Products/Debug-iphoneos/OptimalLive.app/Info.plist'
My problem was a duplicate Product Module Name
for both the Action Extension I created and the main target. The solution was changing the Product module name (Under Build Settings) for the Extension.
(XCode 11)
Before I begin note that my project utilizes Carthage as a dependency manager.
None of the existing answers here resolved my issue. What did resolve the issue for me was the following.
First, I noticed that the build error pointed out one framework in particular. Next I filtered App Target > Build Phases for that framework. I noticed that that framework was present in both "Link Binary With Libraries" and "Embed Frameworks". Noting that none of the frameworks listed under "Embed Frameworks" were ones managed by Carthage I removed the framework in question from "Embed Frameworks". I then re-built my project and everything works fine including the functionality enabled by the framework in question.
I had bunch of Multiple commands produce
warnings - not limited to info.plist duplication in one target. Including localized resources and string files, headers etc.
Solution: remove all duplications in target membership.
Source: Stackoverflow.com