6

#Mac git命令报错 xcrun: error: invalid active developer path

 3 years ago
source link: https://xmanyou.com/mac-git-xcrun-error-invalid-active-developer-path/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
5 March 2021 / mac

#Mac git命令报错 xcrun: error: invalid active developer path

某天,升级完MacOS到Big Sur 11.2.2,然后突然发现git不好用了!

git

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

大概是xcode的一些工具也需要升级。

所以,方法是重新安装xcode的命令行工具:

xcode-select --install

在弹窗中选择“安装
missing-xrun-xcode-select

然后ok了。

如果还不行,可以参考这篇文章提到的另一个方法

https://www.jianshu.com/p/50b6771eb853

sudo xcode-select -switch /

阿斌

Read more posts by this author.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK