Skip to content

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

轩辕十四
Published date:

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

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

运行如下命令:

xcode-select --install

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

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

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