Mac命令行工具11.4不再具有svn [英] Mac command line tools 11.4 no longer has svn

查看:1634
本文介绍了Mac命令行工具11.4不再具有svn的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将XCode和命令行工具更新为11.4.现在,当我运行svn时,它会显示"svn:错误:Xcode不再提供Subversion命令行工具".发行说明说:"Xcode不再提供对Subversion的命令行工具支持-包括svn,git-svn和相关命令.如果您需要Subversion或相关命令行工具,则需要通过运行以下命令来安装Command Line Tools软件包xcode-select --install."安装工具后,我似乎陷入了循环.有人遇到过这个问题并解决了吗?

I just updated XCode and the command line tools to 11.4. Now when I run svn it says "svn: error: The subversion command line tools are no longer provided by Xcode". The release notes say "Command line tool support for Subversion — including svn, git-svn, and related commands is no longer provided by Xcode. If you need Subversion or related command line tools the you need to install the Command Line Tools package by running xcode-select --install." I seem to be in a loop here, as the tools are installed. Has anyone experienced this problem and resolved it?

推荐答案

升级到Catalina 10.15后,我遇到了同样的问题.在Apple网站中明确提到Xcode 11中已弃用SVN:

I had the same issue after upgrading to Catalina 10.15. It's clearly mentioned in the Apple website that SVN is deprecated in Xcode 11:

您可以在这里找到它: https://developer.apple.com/documentation/macos_release_notes/macos_catalina_10_15_release_notes

You can find it here: https://developer.apple.com/documentation/macos_release_notes/macos_catalina_10_15_release_notes

Xcode不再提供对Subversion的命令行工具支持,包括svn,git-svn和相关命令.

Command line tool support for Subversion — including svn, git-svn, and related commands — is no longer provided by Xcode.

解决方案是改为安装独立的命令行工具软件包:

The solution is to install the standalone Command Line Tools package instead:

sudo rm -rf /Library/Developer/CommandLineTools

其次:

sudo xcode-select --install

这将用独立的软件包替换捆绑的命令行工具.

This will replace the bundled Command Line Tools with the standalone package.

如果它对您不起作用,请尝试使用brew安装它.

If it doesn't work for you then try to install it with brew.

brew install svn

brew是MacOS的软件包管理器,因此如果您没有安装Mac,则可以简单地安装它: https://brew.sh/

brew is a package manager for MacOS so if you don't have it installed then you can simply install it: https://brew.sh/

这篇关于Mac命令行工具11.4不再具有svn的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆