ios ビルド xcode-select: エラー: ツール xcodebuild には Xcode エラーが必要です

xcode-select: エラー: ツール 'xcodebuild' には Xcode が必要ですが、アクティブな開発者ディレクトリ '/Library/Developer/CommandLineTools' はコマンド ライン ツール インスタンスです

このエラーが報告される理由は、xcode-select がデフォルトのパスにないためです。

  1. xcode-select の現在のパス ターミナル コマンド ラインを検索します。
xcode-select --print-path
/Library/Developer/CommandLineTools
  1. xcode-select を指定された場所に設定します
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/ 
  1. セットアップが成功したことを確認する
xcode-select --print-path
/Applications/Xcode.app/Contents/Developer

おすすめ

転載: blog.csdn.net/zxsean/article/details/106384364