Xcode10报错 Error: Multiple commands produce

Error: Multiple commands produce

一般有两种错误形式

1、info.plist

Multiple commands produce '/Users/tjsoft/Library/Developer/Xcode/DerivedData/CAPP-amcfzswumxdotlgjwdslugmywxch/Build/Products/Debug-iphoneos/CAPP/Info.plist':
1) Target 'CAPP' (project 'CAPP') has copy command from '/Users/tjsoft/QianJiDangJian_iOS/CAPP/Info.plist' to '/Users/tjsoft/Library/Developer/Xcode/DerivedData/CAPP-amcfzswumxdotlgjwdslugmywxch/Build/Products/Debug-iphoneos/CAPP.app/Info.plist'
2) Target 'CAPP' (project 'CAPP') has process command with output '/Users/tjsoft/Library/Developer/Xcode/DerivedData/CAPP-amcfzswumxdotlgjwdslugmywxch/Build/Products/Debug-iphoneos/CAPP.app/Info.plist

2、Copy Pods Resources

error: Multiple commands produce '/Users/apple/Library/Developer/Xcode/DerivedData/Capp-dwupskpsfaflbjeenxmqhcwjxdht/Build/Products/Debug-iphonesimulator/Capp.app':
1) Target 'Capp' has create directory command with output '/Users/apple/Library/Developer/Xcode/DerivedData/Capp-dwupskpsfaflbjeenxmqhcwjxdht/Build/Products/Debug-iphonesimulator/Capp.app'
2) That command depends on command in Target 'Capp': script phase “[CP] Copy Pods Resources”

这是网上看到的方法 没试 先存着
解决方法可以有两种,一种是不使用New Build System,在File > Project/Workspace Settings中的Share Project/Workspace Settings 里build system 将New Build System(Default)切换成Legacy build system。


Xcode10报错 Error: Multiple commands produce_第1张图片
2605144-e927b19eb2781475.png
Info.plist

在 target -> Build phase > Copy Bundle Resource 中找到info.plist,移除对应的info.plist


Xcode10报错 Error: Multiple commands produce_第2张图片
2605144-7e407522780db85b.png
Copy Pods Resources

在 target -> Build phase > Copy Pods Resources -> Output Files,移除${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}

Xcode10报错 Error: Multiple commands produce_第3张图片
2605144-ef51b824e8a918b0.png

你可能感兴趣的:(Xcode10报错 Error: Multiple commands produce)