公司的mac电脑,之前使用svn的时候一直没有什么问题,基本上不用配置什么,在idea上面会自动找到svn命令,今天上午提示我更新了MacOS Mojave系统,手一抖点了,完了之后发现svn用不了了,一直提示“xcrun: error: invalid active developer path”,切到version control面板,看到有一条更长的提示信息:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
再三检查确认之后,发现svn是没有问题的。
遂百度之,发现是有人使用git碰到过这个问题:http://blog.csdn.net/blueheart20/article/details/78767806
虽然不是svn,但我估计是同样的问题,里面提到博主在尝试重新安装git的时候,却发现报错了
Error: The following formula:
git
cannot be installed as a binary package and must be built from source.
Install the Command Line Tools:
xcode-select --install
Error: Git must be installed and in your PATH!
Error: The following formula:
git
cannot be installed as a binary package and must be built from source.
Install the Command Line Tools:
xcode-select --install
最后一行是关键,提示我们需要install一个命令行执行工具,别的没看出来什么,但是xcode是很眼熟的,那我们直接执行一下
xcode-select --install
没有命令界面,执行了之后会弹出一个系统框,提示你正在安装,等待安装完毕了之后,一切正常!
评论