Skip to content

重装系统提示没有 Git 的解决方式

轩辕十四
Published date:

执行 git 命令后,提示信息如下:

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

运行如下命令:

xcode-select --installzsh

等安装好了之后,git 就又可以用了。

如果不行可以试试下面的命令:

xcode-select --resetzsh
Previous
Introduction to RxTest - tasanobu tech blog
Next
Swift 使用 warning