macOS升级完成后出现 xcrun: error: invalid active developer path问题。无法使用git

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

liingot@localhost study %

这是由于 Xcode command line tools 丢失导致,基本上每次升级 macOS 都会出现这个问题。

修复这个问题也简单,重新安装Xcode command line tools就行。

在终端输入下面命令。

xcode-select --install

提示安装xcode-select软件,安装以后问题就可以解决

精彩文章

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: