Xcode 10 Error: Multiple commands produce for 'app' and 'appex'

前端 未结 13 1888
我寻月下人不归
我寻月下人不归 2020-12-29 02:29

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

相关标签:
13条回答
  • 2020-12-29 02:56

    In case someone is still struggling with this after updating cocoapods and reinstalling pods:

    1. Open Build Phases of the target which gives you problems
    2. Open Copy Pods Resources phase.
    3. Make sure the Output Files is empty. In my case I had a strange entry ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}. I removed it and the build was successful
    0 讨论(0)
  • 2020-12-29 02:58

    Solved my problem by updating Cocoapods from 1.4.0 to 1.5.3

    0 讨论(0)
  • 2020-12-29 02:58

    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.

    0 讨论(0)
  • 2020-12-29 03:00

    My workaround:

    1. Check your pod version pod --version. Update Coacoapods to latest version - v1.5.3 if it's not, by running sudo gem install cocoapods

    2. Update all your pods by running pod update

    3. Remove duplicate info.plist file from Target>Build Phases>Copy Bundle Resources if any.

    0 讨论(0)
  • 2020-12-29 03:02

    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.

    0 讨论(0)
  • 2020-12-29 03:04

    The key was to do pod deintegrate and rm *.workspace file !

    0 讨论(0)
提交回复
热议问题