Last Updated: May 21, 2019
· daij-djan

Update SVN-Client in XCode (and OSX if you like)

The latest xcode (4.6) ships with an older SVN (1.6) and so does osx!
State of the art (as far that can be set for SVN :D) is 1.7

now, when you use some third party tools like Cornerstone SVN they might default to 1.7

1.7 working copies cannot be read/modified with 1.6 and so Xcode will fail to read the history for such working copies.

To upgrade XCode (and if you like, the osx default client):

  1. download svn

    cd ~/Downloads/
    curl -o subversion-latest.tar.gz
    tar -xvf subversion-latest.tar.gz
  2. build & install svn (with neon support! for http/https)

    cd ~/Downloads/subversion-1.7.*
    sh neon
    cd neon/
    ./configure --with-ssl
    sudo make install
    cd ..
    ./configure --prefix=/usr --with-neon
    sudo make install

IF YOU don't want to install it as system default, choose another prefix.. e.g.: ./configure --prefix=/usr/local --with-neon

  1. go into the Xcode bundle and tell it to use the new binaries

    cd /Applications/
    sudo -s
    ln -s /usr/bin/svn* ./

IF YOU didn't install it as system default, the path is different depending on the prefix you chose

2 Responses
Add your response

this is for those that have to use SVN! I recommend GIT though :D

over 1 year ago ·

getting strange error :

$ tar -xvf subversion-latest.tar.gz
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.

over 1 year ago ·