Xcode 10.2.1 Multiple commands produce看似和Xcode 10 Error:Multiple commands produce问题及解决方案一样,实际又不一样。因为Xcode 10 是说的你的工程中加载了无法识别的LICENSE和README.md文件,而Xcode 10.2.1说的是你工程的配置中有非法的LICENSE和Info.plist。
解决方案:找到工程->主 Target ->Build Phases->Copy Bundle Resources。删除非法的LICENSE和Info.plist配置,重新编译工程就可以了。
:-1: Multiple commands produce '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-ebmcvvnlqbixewbxvyltfwbntbhj/Build/Products/Debug-iphoneos/OutdoorClub.app/Info.plist': 1) Target 'OutdoorClub' (project 'OutdoorClub') has copy command from '/Users/jiaguoshang/Desktop/beifen/吉利公司文件/OutdoorClub的副本/OutdoorClub/Info.plist' to '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-ebmcvvnlqbixewbxvyltfwbntbhj/Build/Products/Debug-iphoneos/OutdoorClub.app/Info.plist' 2) Target 'OutdoorClub' (project 'OutdoorClub') has process command with output '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-ebmcvvnlqbixewbxvyltfwbntbhj/Build/Products/Debug-iphoneos/OutdoorClub.app/Info.plist'
1) Target 'OutdoorClub' (project 'OutdoorClub') has copy command from '/Users/jiaguoshang/Desktop/beifen/吉利公司文件/OutdoorClub的副本/OutdoorClub/lib/ModuleManager/LICENSE' to '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-ebmcvvnlqbixewbxvyltfwbntbhj/Build/Products/Debug-iphoneos/OutdoorClub.app/LICENSE' 2) Target 'OutdoorClub' (project 'OutdoorClub') has copy command from '/Users/jiaguoshang/Desktop/beifen/吉利公司文件/OutdoorClub的副本/OutdoorClub/lib/NJKWebViewProgress/LICENSE' to '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-ebmcvvnlqbixewbxvyltfwbntbhj/Build/Products/Debug-iphoneos/OutdoorClub.app/LICENSE' 3) Target 'OutdoorClub' (project 'OutdoorClub') has copy command from '/Users/jiaguoshang/Desktop/beifen/吉利公司文件/OutdoorClub的副本/OutdoorClub/lib/UXBadgeView/LICENSE' to '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-ebmcvvnlqbixewbxvyltfwbntbhj/Build/Products/Debug-iphoneos/OutdoorClub.app/LICENSE' 4) Target 'OutdoorClub' (project 'OutdoorClub') has copy command from '/Users/jiaguoshang/Desktop/beifen/吉利公司文件/OutdoorClub的副本/OutdoorClub/lib/UXCommonShare/LICENSE' to '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-ebmcvvnlqbixewbxvyltfwbntbhj/Build/Products/Debug-iphoneos/OutdoorClub.app/LICENSE' 5) Target 'OutdoorClub' (project 'OutdoorClub') has copy command from '/Users/jiaguoshang/Desktop/beifen/吉利公司文件/OutdoorClub的副本/OutdoorClub/lib/UXJSBridgePlugins/LICENSE' to '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-ebmcvvnlqbixewbxvyltfwbntbhj/Build/Products/Debug-iphoneos/OutdoorClub.app/LICENSE' 6) Target 'OutdoorClub' (project 'OutdoorClub') has copy command from '/Users/jiaguoshang/Desktop/beifen/吉利公司文件/OutdoorClub的副本/OutdoorClub/lib/UXTabBarController/LICENSE' to '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-ebmcvvnlqbixewbxvyltfwbntbhj/Build/Products/Debug-iphoneos/OutdoorClub.app/LICENSE' 7) Target 'OutdoorClub' (project 'OutdoorClub') has copy command from '/Users/jiaguoshang/Desktop/beifen/吉利公司文件/OutdoorClub的副本/OutdoorClub/lib/UXURLRouter/LICENSE' to '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-ebmcvvnlqbixewbxvyltfwbntbhj/Build/Products/Debug-iphoneos/OutdoorClub.app/LICENSE' 8) Target 'OutdoorClub' (project 'OutdoorClub') has copy command from '/Users/jiaguoshang/Desktop/beifen/吉利公司文件/OutdoorClub的副本/OutdoorClub/lib/WebViewJavascriptBridge/LICENSE' to '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/OutdoorClub-ebmcvvnlqbixewbxvyltfwbntbhj/Build/Products/Debug-iphoneos/OutdoorClub.app/LICENSE'
问题截图
待删除的LICENSE和nfo.plist文件图