Mac更新完系统,使用 git、svn 出现
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决方法
命令行终端输入
xcode-select --install
会提示安装 xcode
按步骤安装就可以
安装成功后就可以正常使用 git 和 svn 了。
(无效请尝试重新打开console)