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

点击安装即可

相关推荐
寻道码路10 小时前
【GitHub开源AI精选】WhisperX:70倍实时语音转录、革命性词级时间戳与多说话人分离技术
人工智能·开源·github
南宫码农12 小时前
苹果cms
github·电视盒子·源代码
CoderJia程序员甲13 小时前
GitHub 热榜项目 - 日榜(2026-02-04)
开源·大模型·llm·github·ai教程
该用户已存在(真)14 小时前
工程项目训练--病毒分析
github·课程设计
小灰灰搞电子16 小时前
github/gitee 操作命令详解
gitee·github
会写代码的饭桶18 小时前
【DevOps实战】使用 GitHub Actions 自动构建镜像并双推至 Docker Hub 和 GHCR
docker·自动化·github·devops
MicrosoftReactor18 小时前
技术速递|GitHub Copilot SDK 与云原生的完美融合
云原生·github·copilot
JiL 奥19 小时前
简易的 AWS SAM + GitHub Actions 项目
云计算·github·aws
潘晓可19 小时前
从自建Github实例迁移仓库到SaaS版Github
github
极客小云19 小时前
【基于AI的自动商品试用系统:不仅仅是虚拟试衣!】
javascript·python·django·flask·github·pyqt·fastapi