xcode ios 項目好久沒有打開,今天打開編譯報錯:
error: Multiple commands produce ‘/Users/zh/Library/Developer/Xcode/DerivedData/Faun-bscwtakvrelhxgbfbauoevgxfiih/Build/Products/Debug-iphonesimulator/FangShengyun.app/Assets.car’:
- Target ‘Faun’ (project ‘FangShengyun’) has compile command with input ‘/Volumes/dx/SVN_IOS/Optimization/Faun/Other/Assets.xcassets’
- That command depends on command in Target ‘FangShengyun’ (project ‘FangShengyun’): script phase “[CP] Copy Pods Resources”
該問題可能是由於App-中的多個Assets.xcassets或其他文件而引起的
在這裏插入圖片描述
解決方案->打開目標->構建階段>複製捆綁資源, 然後把Assets.xcassets刪除即可,重新編譯解決問題 。