错误信息:
error: Multiple commands produce '/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/Build/Products/Debug-iphonesimulator/xxxApp.app/Info.plist':
- Target 'xxxApp' (project 'xxxApp') has copy command from '/Users/xxx/xxxApp/Main/Info.plist' to '/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/Build/Products/Debug-iphonesimulator/xxxApp.app/Info.plist'
- Target 'xxxApp' (project 'xxxApp') has process command with output '/Users/xxx/Library/Developer/Xcode/DerivedData/xxx/Build/Products/Debug-iphonesimulator/xxxApp.app/Info.plist'
通过查阅资料发现是构建系统配置问题,解决方法
打开Xcode > File > Workspace Settings
设置Build System
为legacy Build System
警告解决!
补充:
在Stack Overflow看到有大神说把 Target > Build Phases > Compile Sources
和Copy Bundle Resources
文件全部删除,并且也解决了报错问题并且没有出错!
这是原文截图,可以做好备份尝试下