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

点击安装即可

相关推荐
CoderJia程序员甲11 小时前
GitHub 热榜项目 - 日榜(2025-12-24)
ai·开源·llm·github
逛逛GitHub19 小时前
国产AI大模型 Minimax M2.1效果相当惊艳,赶紧试试
github
-拟墨画扇-19 小时前
Git | 文件提交操作
git·gitee·github·gitcode
CoderJia程序员甲20 小时前
GitHub 热榜项目 - 日榜(2025-12-25)
git·ai·开源·llm·github
A132470531220 小时前
进程管理入门:查看和控制Linux进程
linux·运维·服务器·网络·chrome·github
-拟墨画扇-21 小时前
Git | 文件修改操作
大数据·git·gitee·github·gitcode
-拟墨画扇-21 小时前
Git | 版本控制操作
大数据·git·gitee·github
一条闲鱼_mytube21 小时前
GitHub K8S CI/CD 部署指南
github
lyx_20161 天前
尝试理清楚Github fork, tag, release和PR
github
xuhe21 天前
[重磅更新] 支持最新 Overleaf 6.x!我的私有化部署方案 xuhe2/sharelatex-ce 迎来大升级
linux·docker·github·科研·overleaf