xcrun: error: invalid active developer path 解决

在拉取 github 代码时,提示如下报错:

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

原因是:这是由于 Xcode command line tools 丢失导致的,查找解决方案的过程中发现,基本上每次升级 macOS 都会出现这个问题。

下面是解决步骤:

执行命令:xcode-select --install

点击安装即可

相关推荐
wflynn9 小时前
GitHub 日榜趋势速报 | 2026-11-03
开源·github
u1301309 小时前
GitHub 热榜项目:日榜(2026-11-03)
人工智能·github
GoGeekBaird15 小时前
别再给每个 AI 做自我介绍了:我做了一个「个人上下文」管理系统
后端·github·agent
莫晓燚16 小时前
Ansible 13 个常用模块---企业实战
git·github
程序员柒叔18 小时前
Diagram Design 解构:45 种图型如何用语义路由与 SVG 质量门交付
人工智能·github·agent·skills
逛逛GitHub18 小时前
9 个神级 GitHub 项目助你蹭上抖音、小红书 Vibe 知识大赏热点。
github
m4Rk_18 小时前
【论文阅读】Agent 记忆机制(119):EvoLife——让具身 Agent 把主动问到的答案沉淀为可复用的空间经验
论文阅读·人工智能·学习·开源·github
后台模板学习21 小时前
GitHub Actions 与 Jenkins 在日志监
运维·github·jenkins
miofly21 小时前
GitHub 今日推荐|auto-ontology:给 Agent 装上企业数据的语义索引
python·开源·github
miofly1 天前
GitHub 日榜趋势速报 | 2026-11-04
开源·github