升级了macOS Monterey后发现git clone不能用了?

通过git --version命令,报错
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun。

查了一下居然要装xcode?执行以下命令安装。
xcode-select --install
等,等,等,装完果然OK了。

升级macOS Monterey后遇到git clone无法使用的问题,错误提示涉及xcrun。解决办法是安装Xcode Command Line Tools,具体操作命令为xcode-select --install,安装完成后问题得以解决。
3053





