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

备忘录 #67

Open
jyzwf opened this issue Feb 27, 2019 · 0 comments
Open

备忘录 #67

jyzwf opened this issue Feb 27, 2019 · 0 comments

Comments

@jyzwf
Copy link
Owner

jyzwf commented Feb 27, 2019

Mac 升级 Mojava 后使用git报错

今天升级Mac系统到 Mojava后,在使用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 /

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