MacOS Big Sur 11.0.1 (20B29) 不支持 svn的解决办法。
升级了最新的Mac系统MacOS Big Sur 11.0.1 (20B29) ,其他操作感觉一切良好,但是在开发过程中发现svn不能用了。是系统问题吗?不是的。
svn 不支持了
➜ ~ svn --verison
zsh: command not found: svn
试了一下git
xcrun: error: active developer path ("/Applications/Xcode12.1.app/Contents/Developer") does not exist
Use `sudo xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools, or use `xcode-select --install` to install the standalone command line developer tools.
这个提示比较明显,于是我更新Xcode Line tool,并重启了电脑,再次尝试:
➜ ~ git --version
git version 2.24.3 (Apple Git-128)
➜ ~ svn --verison
zsh: command not found: svn
git 好使了,svn还是不可以。
为什么svn不好使?
➜ ~ brew install svn
Warning: You are using macOS 11.0.
We do not provide support for this released but not yet supported version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this
released but not yet supported version.
虽然还是不支持,但brew install svn可以解决svn不支持的问题。
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/apr-1.7.0.big_sur.bottle.tar.gz
######################################################################## 100.0%
…
更新完之后就可以使用svn了。
从Xcode11开始,就不再内置支持svn了,如果需要使用svn的话,通过Homebrew来安装,如果已安装的话更新一下即可。