今天在升級mac系統(tǒng)后,運行g(shù)it命令時,報了如下的錯誤
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解決方案,在命令行執(zhí)行
xcode-select --install
回車后,系統(tǒng)彈出下載xcode,點擊確認(rèn),下載完成后即可。