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

错误说明

我们在升级了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 就好了

评论

《“MacOS升级后出现的 xcrun: error: invalid active developer path, missing xcrun 错误 解决办法 图文教程”》 有 1 条评论

  1. 神秘的小岛岛

    xcode-select –install

发表回复

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