Mac OS下Git报错:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), miss

Mac OS下Git报错:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

一、Mac使用Git出现下面问题

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

二、原因

这是因为Mac更新系统为Catalina后出现问题

三、解决

 xcode-select --install

ps:加sudo可以解决

四、效果

在这里插入图片描述
安装成功之后,测试 git

在这里插入图片描述

发布了38 篇原创文章 · 获赞 43 · 访问量 8万+

猜你喜欢

转载自blog.csdn.net/qq_40272386/article/details/105279600