xcode-select: エラー: ツール 'xcodebuild' には Xcode が必要ですが、アクティブな開発者ディレクトリ '/Library/Developer/CommandLineTools' はコマンド ライン ツール インスタンスです
このエラーが報告される理由は、xcode-select がデフォルトのパスにないためです。
- xcode-select の現在のパス ターミナル コマンド ラインを検索します。
xcode-select --print-path
/Library/Developer/CommandLineTools
- xcode-select を指定された場所に設定します
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/
- セットアップが成功したことを確認する
xcode-select --print-path
/Applications/Xcode.app/Contents/Developer