Mac 升级后idea执行git命令报错xcrun: error: invalid active developer path的解决办法

时间:2023-03-08 19:20:33

报错

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

查询通用的做法是在terminal 执行:

xcode-select --install

由于macOS  升级,打开ieda 还是报错,上面的解决办法还是不行

报错:

下午3:57 Сannot Run Git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

就去git官网下载git https://git-scm.com/download/mac

在手动安装git

再在idea中配置git的地址:

/usr/local/git/bin/git