问题
mac升级到10.12(macOS Sierra),执行命令,出现如下错误:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决办法
安装xcode-select
# xcode-select --install
跳出对话框,安装即可。
如报错
Developer Apple上手动下载对应的Command Line Tools 安装即可。
参考
http://www.ttlsa.com/linux/mac-git-xcrun-error-invalid-active-developer-path/