mac下出现xcrun: error导致git、svn等无法使用的解决办法

3 篇文章 0 订阅
2 篇文章 0 订阅

今天升级了MacOS Mojave,漏洞应该还是蛮多的,网上反映也不好,界面过黑,UI感觉有些突兀,但是还能接受。正常进入idea开始工作,然后……然后……svn不能用了,终端查看svn,报错。

xxxdeMacBook-Pro:~ xxx$ svn --version
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

idea:

解决办法:

在终端输入,会安装xcrun

xxxdeMacBook-Pro:~ xxx$ xcode-select --install
xcode-select: note: install requested for command line developer tools

然后svn就正常了:

xxxMacBook-Pro:~ xxx$ 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/chenjunliang/.subversion
* GPG-Agent
* Mac OS X Keychain

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值