iOS__Cocoapods 安装第三方框架 pod install 报Generating Pods project Abort trap

news/2024/7/6 6:06:24

在开发iOS程序经常会使用到第三方开源的框架,在是使用Cocoapods时,如果遇到pod install 报如下错误:

$ pod install
Generating Pods project 
Abort trap: 6
复制代码

####解决办法: 1.首先需要执行如下命令 (注意:一个一个的执行,且每个命令都要执行)

sudo gem uninstall cocoapods
sudo gem uninstall cocoapods-core
sudo gem uninstall cocoapods-deintegrate
sudo gem uninstall cocoapods-downloader
sudo gem uninstall cocoapods-plugins
sudo gem uninstall cocoapods-search
sudo gem uninstall cocoapods-stats
sudo gem uninstall cocoapods-try
sudo gem uninstall cocoapods-trunk
复制代码

2.然后在执行 :

sudo gem install cocoapods --pre
复制代码

3.如果执行  sudo gem install cocoapods --pre 出现以下错误:

ERROR:  While executing gem ... (Gem::DependencyError)
复制代码

Unable to resolve dependencies: cocoapods requires molinillo

4.需要:更新  gem 运行一下命令

sudo gem update --system
复制代码

5.如果出现以下错误:

ERROR:  While executing gem ... (Errno::EPERM)
复制代码

Operation not permitted - /usr/bin/xcodeproj 6.执行以下命令:

sudo gem install -n /usr/local/bin cocoapods --pre
复制代码

结语: 如果能解决你的问题,请帮忙给一个爱心❤️,谢谢!!!!??


http://www.niftyadmin.cn/n/1997370.html

相关文章

matlab 把数存入数组,求助:如何将带有符号变量的运算结果储存到数组中

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼问题:在使用 MATLAB 去做 Nevilles Algorithm 的时候,因为要涉及到参数(符号变量)的保存,所以要把运算结果储存到一个数组当中。代码如下:% num of interpolation points and curve f…

php技术的概念特点,基本概念

## **class**每个类的定义都以关键字class开头,后面跟着类名,后面跟着一对花括号,里面包含有类的属性与方法的定义。类名可以是任何非 PHP[保留字](https://www.php.net/manual/zh/reserved.php)的合法标签。一个合法类名以字母或下划线开头&…

python存入mysql数据库乱码_Python中MYSQLdb出现乱码的解决方法

本文实例讲述了Python中MYSQLdb出现乱码的解决方法,分享给大家供大家参考。具体方法如下:一般来说,在使用mysql最麻烦的问题在于乱码。查看mysql的编码:命令:show variables like character_set_%;可以看到如下结果&am…

Visual C++(包含Windows API和MFC)开发中常见问题的答案

Visual C(包含Windows API和MFC)开发中常见问题的答案 1.简述VC6下如何进行程序的调试。在主菜单"Build"中,有一个Start Build的子菜单,它下面包含了Go菜单(快捷键为F5),选择后,程序将从当前语句…

《js随机数》系列技术文章整理

《js随机数》系列技术文章整理收藏,希望大家能用得上,大家喜欢就点个赞吧。1、js生成随机颜色值http://www.512pic.com/174/2101-0.html 2、js生成不重复的随机数http://www.512pic.com/174/2098-0.html 3、js生成随机整数http://www.512pic.com/174/209…

app post php,web-是不是只要app用的是post过来的,php都可以直接获取?

对方说自己用的是asihttp,post过来的。那么我能直接接收到吗?还有如何检测我有没有收到别人post过来的数据或别人有没有发送数据过来?回复内容:对方说自己用的是asihttp,post过来的。那么我能直接接收到吗?…

mysql enterprise platinum_MySQL Enterprise Monitor安装

MySQL Enterprise Monitor安装体系架构----------------------------------------------------Monitired MySQL Server Agent --> Monitor安装步骤----------------------------------------------------1. 建立一个作为Repository独立的MySQL数据库,也可以用EM自…

VC++技术经验

1. 如何获取应用程序的实例句柄?应用程序的 实例句柄保存在CWinAppIm_hInstance 中,可以这么调用AfxGetInstancdHandle获得句柄.Example: HANDLE hInstanceAfxGetInstanceHandle();2. 如何通过代码获得应用程序主窗口的指针?主窗口的 指针保存在CWinThread::m_pMainWnd中,调用…