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

本文介绍在Mac OS X El Capitan系统升级后,遇到的xcrun错误导致Git无法使用的问题。此错误通常出现在XCode的命令行工具更新或缺失时。文章提供了简单的解决步骤,只需运行命令'xcode-select --install'即可重新安装XCode的命令行工具,恢复Git的正常使用。

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

 

Have you upgraded to OS X El Cap­i­tan from App Store ?

您是否已从App Store升级到MAC电脑OS系统 

 

Have you sud­denly started get­ting the fol­low­ing error in your project?

 

您是否突然在项目中遇到以下错误

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

If yes, then here is the solution

如果是,那么这是解决方案

 

xcode-select --install
Remem­ber, in MAC git is attached to XCode’s Com­mand line tools.
请记住,在MAC git中附加了XCode的命令行工具。

摘自:https://tips.tutorialhorizon.com//2015/10/01/xcrun-error-invalid-active-developer-path-library-developer-commandline-tools-missing-xcrun/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值