文章转载自 码经笔记 [https://majing.io] https://majing.io/posts/10000002011165
升级到macOS High Sierra后,执行git命令报错:
xcrun: error: invalid active developer path
(/Library/Developer/CommandLineTools), missing xcrun at:
/Library/Developer/CommandLineTools/usr/bin/xcrun
解决方法
xcode-select --install
如果还是有问题,尝试
xcode-select --reset