【问题标题】:The working copy requires a newer version of Subversion than Xcode supports工作副本需要比 Xcode 支持的更新版本的 Subversion
【发布时间】:2013-02-17 05:59:51
【问题描述】:

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

工作副本“path/to/my project”需要比 Xcode 支持的更新版本的 Subversion。

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

【问题讨论】:

标签: xcode software-update


【解决方案1】:

在我的例子中,最新的 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/

【讨论】:

    【解决方案2】:

    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.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

    【讨论】:

    • 接受。没有homebrew,但是可以从subversion.apache.org/download/#recommended-release下载svn
    • 同样的步骤也适用于从 Mac AppStore 下载的 Xcode 版本 5。但是,即使发布了 Xcode 的新更新,您也可能需要重复它。
    • 终极解决方案。谢谢
    猜你喜欢
    • 2012-07-15
    • 1970-01-01
    • 2010-10-29
    • 2019-10-13
    • 2010-09-14
    • 2023-01-25
    • 1970-01-01
    • 1970-01-01
    • 2013-10-19
    相关资源
    最近更新 更多