问题
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?
回答1:
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:
You can find it here: https://developer.apple.com/documentation/macos_release_notes/macos_catalina_10_15_release_notes
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
followed by:
sudo xcode-select --install
This will replace the bundled Command Line Tools with the standalone package.
If it doesn't work for you then try to install it with brew
.
brew install svn
brew
is a package manager for MacOS so if you don't have it installed then you can simply install it: https://brew.sh/
回答2:
brew install svn
in Xcode 11.4. Svn has been removed.
回答3:
I had same issue from Netbeans and have done the following from command line and now all fine
sudo xcode-select --install
回答4:
I am living the same situation as @Jessie, and applied @Hossein's solution.
However, after deleting the complete CommandLineTools directory as advised, the xcode-select --install
command returns this:
xcode-select: error: no developer tools were found, and no install could be requested (perhaps no UI is present), please install manually from 'developer.apple.com'.
If I reinstall 'Command Line Tools for Xcode 11.4' from developer.apple.com, I return with the first message xcode-select: error: command line tools are already installed, use "Software Update" to install updates
. So back to square one.
Any ideas on how to fix this? I actually only need to use Subversion (svn)...
I'm running Xcode 11.4 (11E146) with Command Line Tools for Xcode 11.4 on macOS Catalina 10.15.2.
Thanks! Normand Brousseau
回答5:
- /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
- brew install svn
来源:https://stackoverflow.com/questions/60869347/mac-command-line-tools-11-4-no-longer-has-svn