
Toshi
ターミナルからGitコマンドを実行したら、エラー「xcrun: error: invalid active developer path」が発生したのでその時の対処法をお伝えします!
今回解説していく内容は以下です!
本記事の内容
・Git エラー「xcrun: error: invalid active developer path」の対処法
Git エラー「xcrun: error: invalid active developer path」の対処法
% git -v
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
macOS のメジャーアップグレード後に、このエラーが発生するらしい。
解決方法としては、XCode Command Line ToolsをインストールすればOK!
% xcode-select --install
xcode-select: note: install requested for command line developer tools
99時間(?)…って書かれていたけど10分かからずにインストール完了。
gitのバージョンを確認してみると…
% git -v
git version 2.39.3 (Apple Git-145)
無事実行できました。
まとめ

Toshi
いかがでしたか?/Library/Developer/CommandLineTools/usr/bin以下が空だったのでこういったエラーが発生したようです。
コメント