xcrun: error: invalid active developer path

macOS升级完成后出现 xcrun: error: invalid active developer path问题。

sh 复制代码
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools),
missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

这是由于 Xcode command line tools 丢失导致,基本上每次升级 macOS 都会出现这个问题。

修复这个问题也简单,重新安装Xcode command line tools就行。

在终端输入下面命令。

sh 复制代码
xcode-select --install

此时会出现弹窗,点击安装

点击安装后会出现要求"同意"许可协议,点击同意

然后就开始下载软件了,下载时间会长一点,安心等待即可。

下载安装完成后,该问题就修复了。

相关推荐
程序员果子1 小时前
零拷贝:程序性能加速的终极奥秘
linux·运维·nginx·macos·缓存·centos
天庭鸡腿哥1 小时前
macOS的功能,在Windows上也能实现
windows·microsoft·macos·visual studio·everything
weixin_462446232 小时前
macOS 安装 git-lfs
git·macos
摘星编程7 小时前
从云游戏到Mac远程操控:UU远程游戏、办公场景全覆盖
游戏·macos·uu远程
tobebetter95271 天前
How to use homebrew on mac
macos·homebrew
信奥胡老师2 天前
苹果电脑(mac系统)安装vscode与配置c++环境,并可以使用万能头文件全流程
c++·ide·vscode·macos·编辑器
记忆偶然2 天前
语音转文本技术方案评估与工具选型指南
ide·macos·xcode
尽兴-2 天前
MacOS 一键清理指定目录下老旧node_modules
macos
雾蓝回针3 天前
[全网首发]解决Parallels Desktop运行“第五人格“时 使用涂鸦/快捷发言会导致视角偏移的问题
笔记·macos