错误信息
升级MacOS Sierra到Mac Mojave后执行git命令报错:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决办法
- 打开终端:
xcode-select --install
如果执行上述操作后仍有问题,可以尝试一下方法:
- https://apple.stackexchange.com/questions/254380/macos-mojave-invalid-active-developer-path
- https://stackoverflow.com/questions/32893412/command-line-tools-not-working-os-x-el-capitan-macos-sierra-macos-high-sierra/32894314#32894314
来源:oschina
链接:https://my.oschina.net/u/3497124/blog/2248799