问题:使用git命令报错。
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
解决办法:终端安装xcode工具
1.终端输入
xcode-select --install
image.png
2.点击安装,同意许可。
3.安装完成。