XCode10.2.1打开老工程报Multiple commands produce与Info.plis错误
程序员文章站
2022-05-29 20:49:37
...
error: Multiple commands produce '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/NingApartment-bdrwajakrzfomccqdfolxqufkvbp/Build/Products/Debug-iphonesimulator/MGBaseKit.framework/Info.plist':
1) Target 'MGBaseKit' (project 'MGBaseKit') has copy command from '/Users/jiaguoshang/Desktop/ningchao/ios/MGBaseKit/MGBaseKit/Info.plist' to '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/NingApartment-bdrwajakrzfomccqdfolxqufkvbp/Build/Products/Debug-iphonesimulator/MGBaseKit.framework/Info.plist'
2) Target 'MGBaseKit' (project 'MGBaseKit') has process command with output '/Users/jiaguoshang/Library/Developer/Xcode/DerivedData/NingApartment-bdrwajakrzfomccqdfolxqufkvbp/Build/Products/Debug-iphonesimulator/MGBaseKit.framework/Info.plist'
解决方案:
选择 xcode -> File -> Project Settings
Shared Project Settings: Build System选择Legacy Build System点击Done
最后编译通过