解决方案:mac系统更新导致idea的svn使用不了,异常:xcrun: error

一、问题复现

昨日刚把mac升级到macOS Catalina 10.15.3
升级系统
今日到公司准备提交代码是发现svn出现invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun异常导致无法使用
在这里插入图片描述

二、解决办法

① 打开终端,博主使用的是iTerm,输入:xcode-select --install

****deMacBook-Pro:~ ****$ xcode-select --install
xcode-select: note: install requested for command line developer tools

② 系统会弹出安装界面,根据提示同意安装即可
安装成功
③ 在终端查看一下svn版本,输入svn --version

*****deMacBook-Pro:~ ****$ svn --version
svn, version 1.10.4 (r1850624)
   compiled Dec 13 2019, 19:47:45 on x86_64-apple-darwin18.0.0

Copyright (C) 2019 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/****/.subversion
* GPG-Agent
* Mac OS X Keychain

看到这样的结果说明svn已经可以使用了

重启Idea,启动项目,成功

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值