报错
场景:在更新mac版本之后使用git命令报错,如下
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
问题解决与分析
分析
在一些主要的更新之后,需要同步更新命令行工具
解决
在终端执行一下命令,安装xcode-select
xcode-select --install
参考链接如下:
https://stackoverflow.com/questions/52522565/git-is-not-working-after-macos-update-xcrun-error-invalid-active-developer-pa