今天升級(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
如果沒有解決問題,執(zhí)行以下命令
sudo xcode-select -switch /
作者:Devid
鏈接:http://www.itdecent.cn/p/50b6771eb853
來源:簡(jiǎn)書
簡(jiǎn)書著作權(quán)歸作者所有,任何形式的轉(zhuǎn)載都請(qǐng)聯(lián)系作者獲得授權(quán)并注明出處。