6
#Mac git命令报错 xcrun: error: invalid active developer path
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.
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
在弹窗中选择“安装”
然后ok了。
如果还不行,可以参考这篇文章提到的另一个方法
sudo xcode-select -switch /
阿斌
Read more posts by this author.
扫一扫关注微信公众号:耿直的IT男阿斌
聊一聊IT男眼中的世界
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK