且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

工作副本需要比 Xcode 支持的更新版本的 Subversion

更新时间:2022-11-04 07:44:52

Xcode 4.6 默认使用 SVN 1.6.X,但您项目的 SVN 信息可能是 1.7.X(可能由 Cornerstone 更新).因此,当您尝试更新时,将显示错误消息.所以我们必须让Xcode使用最新的1.7.X SVN.

我也遇到了同样的问题.这是我的解决方案:

  1. 安装 Homebrew,我们将使用它来安装最新的 SVN:

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

  2. 安装最新的SVN:

    brew 安装颠覆

  3. 备份旧的SVN文件并链接最新的SVN:

    cd/Applications/Xcode.app/Contents/Developer/usr/bin/mkdir bak.svnmv svn* bak.svnln -s/usr/local/Cellar/subversion/1.7.8/bin/svn*/Applications/Xcode.app/Contents/Developer/usr/bin/

  4. 重启Xcode

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?

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