升级Mac系统后, IDEA 打开,git使用不了,弹出错误提示:

Cannot Run Git :

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

应该是新系统没有预装XCode的Command Line Tools工具吧,git运行大概是需要依赖于Command Line Tools这个工具,那么,安装它就是了。

解决方法,打开终端,执行命令:

xcode-select --install

 会弹窗提示安装软件,点安装,同意协议,等待安装完成即可。

Cannot Run Git xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)...

相关文章: