今天升級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 /
作者:Devid
鏈接:http://www.reibang.com/p/50b6771eb853
來源:簡書
簡書著作權(quán)歸作者所有敞嗡,任何形式的轉(zhuǎn)載都請聯(lián)系作者獲得授權(quán)并注明出處颁糟。