mac升级到10.12(macOS Sierra),执行git命令,出现如下错误
$ git xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决方法
xcode-select --install
弹出一个界面,安装提示安装即可。
mac升级到10.12(macOS Sierra),执行git命令,出现如下错误
$ git xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决方法
xcode-select --install
弹出一个界面,安装提示安装即可。