解决MacOS升级后出现xcrun error invalid active developer path, missing xcrun的问题

22次阅读
没有评论

共计 275 个字符,预计需要花费 1 分钟才能阅读完成。

升级 macOS,终端里使用 git 的时候,弹出一行莫名其妙的错误:

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

解决方法,重装 xcode command line:

xcode-select --install

如果没有解决问题,执行以下命令

sudo xcode-select -switch /

原文地址 www.jianshu.com

正文完
觉得有用?欢迎赞赏,感谢!
post-qrcode
 0
苏维歌
版权声明:本站原创文章,由 苏维歌 2022-06-06发表,共计275字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)
验证码