9

I just installed Xcode 4.6 (I had Xcode 4.5.1). I just opened an existing project and got this message:

The working copy "path/to/my project" requires a newer version of Subversion than Xcode supports.

I am currently using Cornerstone for svn, and understand that I can probably ignore this message - but since I want to be up-to-date, what do I need to do to resolve this issue?

Screenshot for warning

Jayprakash Dubey
  • 35,723
  • 18
  • 170
  • 177
Phil
  • 35,852
  • 23
  • 123
  • 164
  • Check this : https://developer.apple.com/library/ios/recipes/xcode_help-source_control_management/UpgradingtoSubversion1/UpgradingtoSubversion1.html – Jayprakash Dubey Oct 09 '14 at 09:39

2 Answers2

31

The Xcode 4.6 default use the SVN 1.6.X, but you project's SVN info maybe 1.7.X (That may update by Cornerstone). As a result, when you try to update, the error message'll show. So we have to let the Xcode use the latest 1.7.X SVN.


I also met the same problem. That's my solution:

  1. Install the Homebrew, we'll use it to install the latest SVN:

    ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

  2. install the latest SVN:

    brew install subversion

  3. Backup the old SVN file and link the latest SVN:

    cd /Applications/Xcode.app/Contents/Developer/usr/bin/        
    mkdir bak.svn
    mv svn* bak.svn
    ln -s /usr/local/Cellar/subversion/1.7.8/bin/svn* /Applications/Xcode.app/Contents/Developer/usr/bin/
    
  4. Restart Xcode
Autobots
  • 1,264
  • 15
  • 14
  • 2
    **Accept**. Without `homebrew`, however, svn can be downloaded from http://subversion.apache.org/download/#recommended-release – Phil Apr 24 '13 at 18:25
  • 1
    The same procedure can also be applied for version 5 of Xcode downloaded from Mac AppStore. However you may need to repeat it wheneven a new update for Xcode is released. – RaYell Apr 11 '14 at 10:05
  • Ultimate solution. Thanks – Avi Dec 05 '14 at 05:37
2

In my case, the latest SVN placed at path /usr/bin/, therefore the step 3 will look like this:

cd /Applications/Xcode.app/Contents/Developer/usr/bin/        
mkdir bak.svn
mv svn* bak.svn
ln -s /usr/bin/svn* /Applications/Xcode.app/Contents/Developer/usr/bin/
Oleksandr
  • 41
  • 5