Idea 提示xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xc

背景:macOs High Sierra 升级 macOs Mojave后,idea 报错,Terminal git也不行:git

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

处理:ide

  一、 xcode-select --installidea

        如提示:xcode-select: error: command line tools are already installed, use "Software Update" to install updates 证实安装成功spa

      二、安装完成后,Terminal里的git能够正常运行了,IDEA里仍是一样的报错,将Git配置栏里的/usr/bin/git改成git,搞定code

相关文章
相关标签/搜索