I got the recently discussed \"Xcode 10 Error: Multiple commands produce...\" error, but for the resulting app and appex file of my project. Does anyone have an idea what th
In case someone is still struggling with this after updating cocoapods and reinstalling pods:
${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}
. I removed it and the build was successfulSolved my problem by updating Cocoapods from 1.4.0 to 1.5.3
You might have ran into this CocoaPods issue which is caused by this Xcode issue
This reply might help you, it suggest to specify the subspecs explicitly in your Podfile.
For example use pod 'SDWebImage/Core'
instead of pod 'SDWebImage'
Apparently, this causes the build product path to always contain the subspec name which might fix the issue.
My workaround:
Check your pod version pod --version
.
Update Coacoapods to latest version - v1.5.3 if it's not, by running sudo gem install cocoapods
Update all your pods by running pod update
Remove duplicate info.plist
file from Target>Build Phases>Copy
Bundle Resources
if any.
One of a possible issues causing the "Multiple commands produce" error may be several targets with conflicting module name. In my case I had a main application target and a notification service extension target with the same Product Module Name, so Xcode was trying to create two ModuleName.swiftmodule files, two ModuleName.swiftdoc files etc. Changing notification service extension module name fixed the problem.
The key was to do pod deintegrate
and rm *.workspace
file !