Skip to main content

xcrun: error: invalid active developer path エラー

macOS をアップデートした後、git を実行すると以下のエラーが発生します。

% git

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Terminal で以下を実行すると解決する場合があります。

% xcode-select --install

xcode-select: note: install requested for command line developer tools