版权声明:本文为博主原创文章,转载请联系作者并注明出处 https://blog.csdn.net/asahinokawa/article/details/82223846
从10.13升级到10.14后,git用不了了,提示的错误信息详细如下。
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
感觉应该是xcode出问题了,可以考虑把xcode全部删除了,再重新装一个xcode应该可以。不过感觉重装一下CommandLineTools也行,只是不知道该如何操作。从网上摘抄过来的教程如下:
open a dialog for installation of the command line developer tools.
尝试安装Command Line Tools。
xcode-select --install
如果上述不能生效,考虑先将Command Line Tools删除,删除的目录为:
rm -rf /Library/Developer/CommandLineTools
尝试时,第一项方法即完成了错误的修改。