今天闲着没事情,就把iOS版本升级到High Sierra(10.13.2)之后,发现git命令不好使了,报错内容如下:
➜ ~ git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
需要手动把xcode安装一遍,命令如下:
xcode-select --install