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

时间:2021-09-20 21:23:08

今天在添加友盟统计的podfile

pod install报错了:

bogon:Children songximing$ pod install
/Library/Ruby/Gems/2.3./gems/cocoapods-1.5./lib/cocoapods/command.rb::in `git_version': Failed to extract git version from `git --version` ("xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun\n") (RuntimeError)
from /Library/Ruby/Gems/2.3./gems/cocoapods-1.5./lib/cocoapods/command.rb::in `verify_minimum_git_version!'
from /Library/Ruby/Gems/2.3./gems/cocoapods-1.5./lib/cocoapods/command.rb::in `run'
from /Library/Ruby/Gems/2.3./gems/cocoapods-1.5./bin/pod::in `<top (required)>'
from /usr/local/bin/pod::in `load'
from /usr/local/bin/pod::in `<main>'

原因是升级了macOS Sierra 版本之后,command line tools 工具没有用,
google了一下,在*.com上面找到了问题的解决方法。

xcode-select --install

控制台输入以上代码下载xcode命令行工具,就可以完美解决问题了(不会帮你安装xcode)。

原网页:
https://*.com/questions/32893412/command-line-tools-not-working-os-x-el-capitan-macos-sierra/32894314#32894314

https://blog.csdn.net/Winter_chen001/article/details/77726456

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at[转载]的更多相关文章

  1. xcrun&colon; error&colon; invalid active developer path &lpar;&sol;Library&sol;Developer&sol;CommandLineTools&rpar;&comma; missing xcrun

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

  2. 报错解决——xcrun&colon; error&colon; invalid active developer path &lpar;&sol;Library&sol;Developer&sol;CommandLineTools&rpar;&comma; missing xcrun at&colon; &sol;Library&sol;Developer&sol;CommandLineTools&sol;usr&sol;bin&sol;xcrun

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

  3. 解决MAC下xcrun&colon; error&colon; invalid active developer path &lpar;&sol;Library&sol;Developer&sol;CommandLineTools&rpar;的问题

    将系统升级到了最新10.13.3 macOS High Sierra后,在使用ctags命令时会出现如下问题: xcrun: error: invalid active developer path ...

  4. 解决mac升级后,出现的 xcrun&colon; error&colon; invalid active developer path&comma; missing xcrun 错误

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

  5. MAC 调用GCC 提示xcrun&colon; error&colon; invalid active developer path

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

  6. invalid active developer path &lpar;&sol;Library&sol;Developer&sol;CommandLineTools&rpar;&comma; missing xcrun at&colon; &sol;Library&sol;Developer&sol;CommandLineTools&sol;usr&sol;bin&sol;xcrun

    Mac系统升级git会找不到并且报错:xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools) ...

  7. xcrun&colon; error&colon; invalid active developer path

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

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

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

  9. SVN出现xcrun&colon; error&colon; invalid active developer path(Mac)

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

随机推荐

  1. POJ 2876 Cantoring Along

    Description The Cantor set was discovered by Georg Cantor. It is one of the simpler fractals. It is ...

  2. 三级联动数据表db&lowbar;nove&period;sql

    -- phpMyAdmin SQL Dump -- version 2.11.2 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2 ...

  3. Gym101522A Gym101522C Gym101522D

    Gym101522A A There are two popular formats for representing a date: day/month/year or month/day/year ...

  4. VS中使用&period;NET Reactor进行代码混淆

    .NET Reactor相信大家都不陌生,网上使用教程也很多.但绝大多数都只介绍到软件的使用,而对于在VS中使用介绍的不多. 首先,在.NET Reactor的Help中Add In,如下图. 重启V ...

  5. 如何反编译APK?

    1.概述 一些商业的app都包含很多精美的图片还有一些比较好的配置文件,以前某师兄就说过apk把后缀改为zip,然后解压一下就可以获得很多图片资源,但是这时候你打开一下解压出来的xml资源全是乱码.通 ...

  6. 详解IPTABLES

    详解IPTABLES Iptables 是Linux 内核集成的 IP 信息包过滤系统.如果Linux 系统连接到因特网或 LAN.服务器或连接 LAN 和因特网的代理服务器, 则该系统有利于在 Li ...

  7. D&period; Fun with Integers

    链接 [http://codeforces.com/contest/1062/problem/D] 题意 给你n,让你从2到n这个区间找任意两个数,使得一个数是另一个的因子,绝对值小的可以变为绝对值大 ...

  8. Mac 安装mongodb

    http://blog.csdn.net/u010311313/article/details/46948995 1.前往官网下载MongoDB压缩包 2.将下载好的压缩包解压,将解压出的文件夹下的内 ...

  9. ARMCC和GCC编译ARM代码的软浮点和硬浮点问题【转】

    转自:https://blog.csdn.net/hunanchenxingyu/article/details/47003279 本文介绍了ARM代码编译时的软浮点(soft-float)和硬浮点( ...

  10. STL-map and multimap

    定义 map<int,int> a; map<int,string> a; map<double,int> a; …… 首先要知道的一些 Map是STL的一个关联容 ...