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

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15179683/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 02:53:35  来源:igfitidea点击:

The working copy requires a newer version of Subversion than Xcode supports

xcodesoftware-update

提问by Phil

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

我刚刚安装Xcode 4.6(我有Xcode 4.5.1)。我刚刚打开了一个现有的项目并收到了这条消息:

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

工作副本“路径/到/我的项目”需要比 Xcode 支持的更新版本的 Subversion。

I am currently using Cornerstonefor 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?

我目前正在将Cornerstone用于 svn,并且了解我可能可以忽略此消息 - 但由于我想保持最新状态,我需要做什么来解决此问题?

Screenshot for warning

警告截图

回答by Autobots

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.

Xcode 4.6 默认使用 SVN 1.6.X,但您项目的 SVN 信息可能是 1.7.X(可能由 Cornerstone 更新)。因此,当您尝试更新时,将显示错误消息。所以我们必须让Xcode使用最新的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
  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.svn
    mv svn* bak.svn
    ln -s /usr/local/Cellar/subversion/1.7.8/bin/svn* /Applications/Xcode.app/Contents/Developer/usr/bin/
    
  4. 重启Xcode

回答by Oleksandr

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

就我而言,最新的 SVN 位于路径 /usr/bin/,因此第 3 步将如下所示:

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/