Mac command line tools 11.4 no longer has svn

Jesse picture Jesse · Mar 26, 2020 · Viewed 45.3k times · Source

I just updated XCode and the command line tools to 11.4. Now when I run svn it says "svn: error: The subversion command line tools are no longer provided by Xcode". The release notes say "Command line tool support for Subversion — including svn, git-svn, and related commands is no longer provided by Xcode. If you need Subversion or related command line tools the you need to install the Command Line Tools package by running xcode-select --install." I seem to be in a loop here, as the tools are installed. Has anyone experienced this problem and resolved it?

Answer

Hossein picture Hossein · Mar 28, 2020

macOS Catalina

I had the same issue after upgrading to Catalina 10.15. It's clearly mentioned in the Apple website that SVN is deprecated in Xcode 11:

You can find it here: https://developer.apple.com/documentation/macos_release_notes/macos_catalina_10_15_release_notes

Command line tool support for Subversion — including svn, git-svn, and related commands — is no longer provided by Xcode.

The solution is to install the standalone Command Line Tools package instead:

sudo rm -rf /Library/Developer/CommandLineTools

followed by:

sudo xcode-select --install

This will replace the bundled Command Line Tools with the standalone package.

If it doesn't work for you then try to install it with brew.

brew install svn

brew is a package manager for MacOS so if you don't have it installed then you can simply install it: https://brew.sh/

macOS Big Sur

I faced the same issue Today (16th November 2020) after upgrading to MacOS Big Sur. I was able to fix it by installing the SVN again using brew install svn command.

If you faced permission errors after running above command, you can fix it by running following command.

sudo chown -R $(whoami) /usr/local/*