Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac command line tools 11.4 no longer has svn

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?

like image 658
Jesse Avatar asked Mar 26 '20 14:03

Jesse


People also ask

How do I know if svn is installed on Mac?

To do so, go to /usr/bin and remove all files starting with svn. This isn't an exact science but it should do the trick. Type "svn --version". You should see that you have the newest version installed!

Where is svn on Mac?

app/Contents/Developer/usr/bin.

Can we use svn on Mac?

You can get SVN with Xcode, Homebrew, MacPorts, and probably other sources as well.

What is the best svn client for Mac?

SmartSVN – SVN Client. The popular Subversion client for macOS, Windows and Linux. Available as free Foundation edition and as full-featured Professional edition.


1 Answers

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/* 
like image 193
Hossein Avatar answered Nov 09 '22 15:11

Hossein