Mac升级High Sierra后,IDEA xcrun: error: invalid active developer path

栏目: IT资讯 · 发布时间: 7年前

内容简介:今天心血来潮升级了Mac os最新的系统升级完成后发现IDEA的git无法正常打开,提示在Terminal输入git也是同样的提示,怀疑是升级后Git安装的有问题,在网上查阅资料后,重新安装Xcode相关内容,使用以下指令

今天心血来潮升级了Mac os最新的系统

Mac升级High Sierra后,IDEA xcrun: error: invalid active developer path

升级完成后发现IDEA的git无法正常打开,提示

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

在Terminal输入git也是同样的提示,怀疑是升级后Git安装的有问题,在网上查阅资料后,重新安装Xcode相关内容,使用以下指令

xcode-select --install
复制代码

安装完成后,Terminal里的git可以正常运行了,不过IDEA里还是同样的报错,将Git配置栏里的/usr/bin/git改为git后,问题修复。

Mac升级High Sierra后,IDEA xcrun: error: invalid active developer path

不过修复过后,再改为/usr/bin/git也能正常运行了,感觉是一个比较神奇的配置问题,供遇到同样问题的网友参考。


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Nature of Code

The Nature of Code

Daniel Shiffman / The Nature of Code / 2012-12-13 / GBP 19.95

How can we capture the unpredictable evolutionary and emergent properties of nature in software? How can understanding the mathematical principles behind our physical world help us to create digital w......一起来看看 《The Nature of Code》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

SHA 加密
SHA 加密

SHA 加密工具

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器