升级了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了。