MacOS报错xcrun: error: invalid active developer path...

本文详细介绍了在MacBookPro10.15上遇到xcrun错误的可能原因及解决办法。错误通常由Xcode卸载或系统更新引起,解决方案包括使用xcode-select命令和从苹果官网下载并安装稳定版的CommandLineToolsForXcode。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

MacBookPro10.15报错如下:

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

问题出现的可能原因:卸载xcode导致,或者更新系统导致;


解决办法:

先使用:

xcode-select --install

如果使用这个指令报以下错误:

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

就直接去苹果官网开发者工具下载Command Line Tools For Xcode;建议选择稳定版本;

去官网地址:https://developer.apple.com/download/more/搜索;
apple开发者官网下载command line tools for xcode

下载安装完成之后,应该就不会出现之前的报错了!


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值