Mac 升级macOs Sonoma14.2.1后SourceTree管理报错
'git status' failed with code 1:'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
如图:
解决方案
只需打开终端或者命令行,并输入以下命令,会弹出下载提示,点击下载即可。
xcode-select --install
如果安装过程中遇到权限问题,你可能需要在命令前面加上 sudo,后续输入密码即可。
sudo xcode-select --install