弱鸡拉完项目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.
网友评论