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。
Info.plist
在 target -> Build phase > Copy Bundle Resource 中找到info.plist,移除对应的info.plist
Copy Pods Resources
在 target -> Build phase > Copy Pods Resources -> Output Files,移除${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}