解决Mac OS更新系统后自带svn无法使用的问题

上周更新了10.14版本后,发现IDEA内的svn无法正常使用,后续在终端中查看svn版本,得到以下错误提示:

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

Mac的svn是自带的,所以立即考虑去Apple Developer下载相应版本的工具即可:
Command_Line_Tools_macOS_10.14_for_Xcode_10.dmg
下载地址:
https://developer.apple.com/download/more/

image.png

安装后svn已经可以正常使用

$ svn --version
svn, version 1.10.0 (r1827917)
   compiled Aug 14 2018, 02:37:13 on x86_64-apple-darwin17.0.0

Copyright (C) 2018 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.9 (compiled with 1.3.9)
  - handles 'http' scheme
  - handles 'https' scheme

The following authentication credential caches are available:

* Plaintext cache in /Users/xx/.subversion
* GPG-Agent
* Mac OS X Keychain

你可能感兴趣的:(解决Mac OS更新系统后自带svn无法使用的问题)