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

点击安装即可

相关推荐
James_WangA7 小时前
我给 AOI 设备装了一个 Agent,然后发现工具注册才是最难写的
架构·github
James_WangA7 小时前
产线上跑 Agent:LLM 挂了不是 500 错误,是停线
架构·github
Hommy8812 小时前
【开源剪映小助手】字幕接口
开源·github·aigc·剪映小助手·视频剪辑自动化
一袋米扛几楼9814 小时前
【Git】规范化协作:详解 GitHub 工作流中的 Issue、Branch 与 Pull Request 最佳实践
前端·git·github·issue
尘埃落定wf15 小时前
# GitHub CLI:告别繁琐的 Git 命令,让开发更高效
git·github
zh_xuan15 小时前
上传api调试工具到github
github
AIMath~17 小时前
彻底删除 GitHub 仓库中特定文件夹的完整指南
github
DogDaoDao18 小时前
【GitHub】OpenClaw:开源个人AI助手的新标杆
人工智能·深度学习·开源·大模型·github·ai编程·opeclaw
一点一木1 天前
🚀 2026 年 4 月 GitHub 十大热门项目排行榜 🔥
人工智能·github
宝桥南山1 天前
AI - 在命令行中尝试一下ACP(Agent Client Protocol)通信
microsoft·微软·github·aigc·copilot