美文网首页iOS开发功能Debug
Xcode编译问题----“Multiple commands

Xcode编译问题----“Multiple commands

作者: M_PI_4 | 来源:发表于2020-12-03 13:53 被阅读0次

    弱鸡拉完项目Build遇到的ERROR, 如下所示:

    Multiple commands produce '/Users/Tomato/Library/Developer
    /Xcode/DerivedData/XXXX-fjwfdlboiwngkmbkqoefqmnbrale/
    Build/Products/Debug-iphoneos/XXXX.app/Frameworks/App.framework':
    1) Target 'XXXX' has copy command 
    from 
    '/Users/Tomato/Desktop/SpringCoca/XXXX/Pods/FlutterXXSDK/Classes/App.framework' 
    to 
    '/Users/Tomato/Library/Developer/Xcode/DerivedData/XXXX-fjwfdlboiwngkmbkqoefqmnbrale/Build/Products/Debug-iphoneos/XXXX.app/Frameworks/App.framework'
    2) That command depends on command in Target 'XXXX': 
    script phase “[CP] Embed Pods Frameworks”
    
    “Multiple commands produce ...”的产生原因:

    Workspace Setting 的 "New Build System"会对构建中的元素循环进行严格的检查,避免不必要的重建,这个也是错误出现的原因。

    更多详情, CocoaPods官方issue链接:issue8122.

    解决办法
    参考来源
    1. Xcode 11编译错误Multiple commands produce的解决
    2. iOS中关于: Multiple commands produce 的错误解决
    3. 升级到Xcode10以后,编译旧项目报错
    4. Xcode “Embed Frameworks” built under different configuration

    相关文章

      网友评论

        本文标题:Xcode编译问题----“Multiple commands

        本文链接:https://www.haomeiwen.com/subject/xqlmwktx.html