每次升级完macOS都会被 Xcode command line tools missing xcrun 问候一遍,也是挺烦的。

这个春节过光顾着吃喝玩乐,过的蛮颓废的,感觉再也追不上朋友圈各位大佬了。

上班第一天感觉好像不写篇文章有点过意不去,于是就赶紧打开电脑,在终端里输入下面的指令

$ make new name="my-v-is-ibrainto"

输入这个指令是想创建一个文稿,假装写篇文章压压惊,然而[回车]之后,它却报错了。

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

对,就是上面的这个错误,感觉你应该也见过,是的Xcode command line tools丢失导致的xcrun: error,这个我应该是第三次遇到了。

好好的指令用着用着怎么就不好用了呢?

还不是升级macOS的锅,在升级 macOS Big Sur 差点丢了我多年的珍藏!!!这篇文章中我分享了升级过程中我遇到的一些有惊无险的故事,有兴趣的话你可以点击查看。

Xcode command line tools丢失,基本上每次升级macOS都会被它问候,不知道你有没有遇到。

按照我的原则同一个问题遇到不止一次,那么我就会去记录一下了,以备后来查阅。

其实问题的处理非常简单,下面的这条命令就可以重新安装Xcode command line tools

$ xcode-select --install
xcode-select: note: install requested for command line developer tools

回车之后会出现如下的弹窗,点击"安装"即可



点击安装之后会要求"同意"许可协议



同意许可协议之后会开始下载软件



若干分钟之后,会提升安装完成,下载的过程可能会比较久,这取决于你的网速。



安装完成之后,一切如初,又可以通过命令行来愉快的创建模版草稿,假装写文章了。

$ xcode-select -v
xcode-select version 2384. $ make new name="my-v-is-ibrainto"
hexo new draft my-v-is-ibrainto
INFO Created: /gitlab/blog/source/_drafts/my-v-is-ibrainto.md

Xcode command line tools每次升级 macOS 都要重新来一次,不知道你是什么感受,反正我是觉得挺烦的,算是一个痛点了吧,不知道这个后面Apple公司会不是出更好的解决方案。

最后,很想知道你是如何解决这个问题的,期待你的分享。

又见 xcrun: error: invalid active developer path 错误的更多相关文章

  1. 运行git提示xcrun: error: invalid active developer path错误

    运行git提示xcrun: error: invalid active developer path错误 是xcode的原因 运行如下命令解决: xcode-select --install

  2. 解决mac升级后,出现的 xcrun: error: invalid active developer path, missing xcrun 错误

    最近升级了mac系统,然后接着写代码就出问题了. 报错信息如下: xcrun: error: invalid active developer path (/Library/Developer/Com ...

  3. MAC 调用GCC 提示xcrun: error: invalid active developer path

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

  4. xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun

    原文地址 xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcru ...

  5. 报错解决——xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

    一般在遇到这个问题的时候都是想用git或者svn,结果发现用不了并报错xcrun: error: invalid active developer path (/Library/Developer/C ...

  6. xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at[转载]

    今天在添加友盟统计的podfile pod install报错了: bogon:Children songximing$ pod install /Library/Ruby/Gems//gems/co ...

  7. xcrun: error: invalid active developer path

    问题 mac升级到10.12(macOS Sierra),执行命令,出现如下错误: xcrun: error: invalid active developer path (/Library/Deve ...

  8. Mac 升级后idea执行git命令报错xcrun: error: invalid active developer path的解决办法

    报错 xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun ...

  9. SVN出现xcrun: error: invalid active developer path(Mac)

    Mac升级了系统,配置PHPStorm的SVN,出现如下错误: 具体提示的内容是:xcrun: error: invalid active developer path (/Library/Devel ...

随机推荐

  1. WPF之自定义委托命令

    常用命令 WPF的命令实际上就是实现了ICommand接口的类,平时使用最多的是RoutedCommand类,还可以使用自定义命令. RoutedCommand只负责跑腿,并不对命名目标做任何操作,实 ...

  2. 使用乌龟Git连接github

    之前自己是在Gitee+乌龟Git来进行管理项目,因为特殊的需求,需要再Github+乌龟Git来进行管理项目,这盘博客主要讲解的就是这个. 安装环境 Git 安装参考链接:https://www.c ...

  3. Windows server 2003域控迁移到2012

    1:  windows server 2003 额外域控升级为 windows server 2003主域控 (因为原域控制器某些服务损坏,于是采用将备用域控升级为主域控的方法) https://we ...

  4. c++逆向分析----返回对象

    对象不使用默认析构函数 class Test { public: char cNum1; int iNum2; int* pInt; }; Test _ReturnObject() { Test st ...

  5. 剑指offer 数组中的重复数字

    问题描述: 在长度为n的数组中,所有的元素都是0到n-1的范围内. 数组中的某些数字是重复的,但不知道有几个重复的数字,也不知道重复了几次,请找出任意重复的数字. 例如,输入长度为7的数组{2,3,1 ...

  6. Taro使用多线程Worker相关问题解决

    JavaScript 语言采用的是单线程模型,HTML5标准中的Web Worker ,为 JavaScript 创造多线程环境.微信小程序也有相应的Worker,同样具备多线程运行的能力 主页面中创 ...

  7. 一文学完makefile语法

    一.开始 1.Hello World 新建一个makefile文件,写入如下内容, hello: echo "Hello World" clean: echo "clea ...

  8. XSF /如何使用xrandr

    XSF /如何使用xrandr 西里尔·布鲁莱布瓦<kibi@debian.org> 目录 入门 什么是xrandr? xrandr是与XRandR 扩展名交互的命令行工具[请参阅x.or ...

  9. Chm文件阅读软件测试需求

    转发: .Chm文件阅读软件测试需求 . xchm问题太多就不考虑了: kchm是问题少一些 windows打开是乱码就不去考虑 必须在windows打开正常的再在龙芯上打开 1windows打开是乱 ...

  10. 进入除错模式!进入此模式后,将会出现更多的选项,分别是: · 以基本图形介面安装 CentOS 7 (使用标准显卡来设定安装流程图示); · 救援Centos系统; · 执行内存测试(Run a memory test);

    Centos 7.3 安装 0.0392017.07.14 20:12:09字数 1550阅读 985 Centos 7.3 基于 Red Hat 企业版的源代码的最新版本的 CentOS 7 在今年 ...