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