Xcode10 Multiple commands produced 编译报错问题

今天升级了Xcode10,直接跑之前的项目就会出现以下的编译错误

Showing All Messages
:-1: Multiple commands produce '/Users/.../Desktop/XXX/DerivedData/XXX/Build/Products/Debug-iphoneos/XXX.app/Info.plist':
1) Target 'XXX' (project 'XXX') has copy command from '/Users/.../Desktop/XXX/XXX/SupportingFiles/Info.plist' to '/Users/.../Desktop/XXX/DerivedData/HJBasic/Build/Products/Debug-iphoneos/XXX.app/Info.plist'
2) Target 'XXX' (project 'XXX') has process command with output '/Users/.../Desktop/XXX/DerivedData/HJBasic/Build/Products/Debug-iphoneos/XXX.app/Info.plist'

解决方法

第一种:选择 File > Project Settings (或者 File > Workspace Settings)

File > Project Settings .png

选择Build System为Legacy Build system
Build System > Legacy Build system.png

再次编译就好了
第二种方法:如果你想在new build system下不报错

 选中 target > Build phase > Copy Bundle Resource/Compile Sources > 删除 info.plist

这样在new build system下编译也不会报错

关于其他的一些问题或者更多的解决方案,你可以从这个苹果Xcode帮助页找到其他故障排除帮助

原文:
https://stackoverflow.com/questions/51071090/multiple-commands-produced-error-xcode-10

你可能感兴趣的:(Xcode10 Multiple commands produced 编译报错问题)