Xcode10エラー:複数のコマンドが生成します
Xcode10 Error Multiple Commands Produce
最近Xcode10バージョンを使用し、今日Xcode10 beta3にアップグレードしましたが、プロジェクトのコンパイル時にコンパイルが失敗し、エラーが報告されました。
エラー:複数のコマンドが生成します '/Users/xiaoyuan/Library/Developer/Xcode/DerivedData/xxx-gnxeuntgkenwgdgycqnvabqubafh/Build/Products/Debug-iphoneos/xx.app':
1) Target 'xxx' has create directory command with output '/Users/xiaoyuan/Library/Developer/Xcode/DerivedData/xxxx-gnxeuntgkenwgdgycqnvabqubafh/Build/Products/Debug-iphoneos/xxxx.app'
2) That command depends on command in Target 'xxxx': script phase “[CP] Copy Pods Resources”
Copy Pods Resources
1.ビルドシステムを変更します--- 最速かつ最も効果的なソリューション
Xcodeメニューバー->ファイル->ワークスペース設定で、ビルドシステムをレガシービルドシステムに変更してから、クリーンアップしてコンパイルします。
2.ビルドシステムを変更しないでください
ビルドエラーログを分析すると、エラーはoutput
で発生しますThe project target-Copy Pods Resources-Output Files
関連して、ココアポッドの使用が原因である必要があります。削除してみてくださいSelect project target -> Build phase -> Copy Pods Resources -> Output Files -> Remove${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH} -> Build
、問題を正常に解決します。
|_+_|
サンプルグラフ