Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mac git xcrun error active developer path 错误 #31

Open
TFdream opened this issue Oct 29, 2018 · 0 comments
Open

mac git xcrun error active developer path 错误 #31

TFdream opened this issue Oct 29, 2018 · 0 comments

Comments

@TFdream
Copy link
Owner

TFdream commented Oct 29, 2018

上周五升级了一下MBP系统到最新到Mojave,结果今天上班后发现git使不了,异常如下:

appledeMacBook-Pro-181:~ apple$ git status
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

我本机之前安装过XCode,于是执行:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

如果未安装过,可执行如下命令:

xcode-select --install

回车后,系统弹出下载xcode,点击确认,下载完成后即可(注:需要有VPN)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant