Loosing my svn

I use svn in a terminal window.
When I have updated my OS to Catalina 10.15.5,
the svn was not available anymore.
the message is:

svn: error: Failed to locate 'svn'.
svn: error: The subversion command line tools are no longer provided by Xcode.

I followed the procedure given by apple:
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install

but it did not work.
I think that it is a trouble with Xcode, but I do not know what to do. Can I have help ?
Xcode stopped shipping with SVN a while back. If you need SVN, you’ll have to install it yourself.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
It was a big mistake to delete SVN from Xcode. Nightmare for many developers.

On Intel Macs SVN still available in Command Line Tools for Big Sur:

/Library/Developer/CommandLineTools/usr/bin/svn

Create a symlink to use "svn" command as usually:
ln -s /Library/Developer/CommandLineTools/usr/bin/svn svn

Alternate solution:
brew install svn
(install homebrew package firstly).

2. I found a solution for Mac with Apple M1. Copy SVN binaries and dylibs from Intel Mac.

Code Block
mkdir svn_backup
cd svn_backup
mkdir bin
mkdir lib
cd ..
scp /Library/Developer/CommandLineTools/usr/bin/svn* svn_backup/bin
scp /Library/Developer/CommandLineTools/usr/lib/libsvn_*.dylib svn_backup/lib
scp /Library/Developer/CommandLineTools/usr/lib/libserf*.dylib svn_backup/lib


then copy executables to /usr/local/bin
and copy dylibs to /usr/local/lib
on Mac on Apple M1 chip.

SVN will work via Rosetta 2 emulation.

Make a backup of these files to use it in future macOS versions.
@wnsoft, what version of the Command Line Tools installer did you use to get your svn? TIA
Loosing my svn
 
 
Q