美文网首页
Xcode10报错 Error: Multiple comman

Xcode10报错 Error: Multiple comman

作者: 温水煮青蛙a | 来源:发表于2018-10-29 09:45 被阅读0次
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。


2605144-e927b19eb2781475.png
Info.plist

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


2605144-7e407522780db85b.png
Copy Pods Resources

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

2605144-ef51b824e8a918b0.png

相关文章

网友评论

      本文标题:Xcode10报错 Error: Multiple comman

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