今天閑著沒事情叫榕,就把iOS版本升級到High Sierra(10.13.2)之后浑侥,發(fā)現(xiàn)git命令不好使了,報錯內(nèi)容如下:
? ~ git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
需要手動把xcode安裝一遍晰绎,命令如下:
xcode-select --install