macOS Sierra
升级到macOS High Sierra
后执行cc
,git
等命令报错,错误信息如下:
1 |
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun |
解决方法如下:
1 |
$ xcode-select --install |