Xcode 10 Multiple commands produce 错误

部分旧的工程用 Xcode 10 打开打开的时候报如下错:

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

解决方案:

  1. pod --version检查Cocoapods版本是否是最新的1.5.3,如果不是,终端执行进sudo gem install cocoapods行升级
    然后到到工程Podfile目录下执行pod install即可解决

  2. Target -> Build Phases -> Copy Bundle Resources 删除里面的info.plist

参考:
https://stackoverflow.com/questions/52382667/xcode-10-error-multiple-commands-produce-for-app-and-appex