MacOS升级后出现的 xcrun: error: invalid active developer path, missing xcrun 错误 解决办法 图文教程

来源: 老季博客
日期: 2018-10-27
作者: 腾讯云/服务器VPS推荐评测/Vultr
阅读数: 74

错误说明

我们在升级了MacOS系统之后出现了错误,如下:

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

在终端中输入git命令出现了上述错误,后来想到应该是升级了系统导致的。下面给出解决方法。

解决办法

在终端输入:

xcode-select –install

重装command line tools 就好了

链接到文章: https://jiloc.com/44310.html

回复给 “MacOS升级后出现的 xcrun: error: invalid active developer path, missing xcrun 错误 解决办法 图文教程”

神秘的小岛岛说道:

xcode-select –install

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注