今天升級macOS High Sierra抡驼,終端里使用git的時候鬼廓,彈出一行莫名其妙的錯誤:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解決方法,重裝xcode command line:
xcode-select --install
如果沒有解決問題致盟,執(zhí)行以下命令
sudo xcode-select -switch /