美文网首页
iOS__Cocoapods 安装第三方框架 pod insta

iOS__Cocoapods 安装第三方框架 pod insta

作者: CoderJohnhao | 来源:发表于2016-12-30 09:29 被阅读10次
44219f6ca3e72abae1c8fd107ebddf9c.jpg

在开发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

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

相关文章

  • iOS__Cocoapods 安装第三方框架 pod insta

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

  • iOS文件压缩和解压缩—ZipArchive

    使用第三方解压缩框架ZipArchive 推荐使用cocoaPoads安装:pod 'SSZipArchive' ...

  • pod 指令

    只安装新增库,不更新已安装的库 pod install 把Podfile内全部的库更新重新安装 pod insta...

  • pod

    框架中使用pod去管理第三方库,如果你的电脑还没有安装pod,你可以根据下面这篇文章进行安装。 iOS安装Coco...

  • 项目总结-2

    在cocoapods的podfile文件更新和下载第三方框架 安装,pod install --no-repo-u...

  • 项目框架搭建

    项目框架搭建: 1. 使用到的第三方库: pod 'SnapKit'pod 'Moya/RxSwift'pod '...

  • pod init

    pod init 建立podfile pod install 安装第三方库 pod repo update 更新第...

  • pod 命令

    创建默认的 Podfile $ pod init 第一次使用安装框架 $ pod install 安装框架,不更新...

  • 网易IM-Swift版的相关问题

    1、其他第三方的问题 pod 'NIMKit', 这个Pod会自带UI框架和IM框架,其中还包括 至此...

  • iOS 面试知识点(六)

    cocoapods 命令 pod init:初始化; pod install:安装第三方库; pod update...

网友评论

      本文标题:iOS__Cocoapods 安装第三方框架 pod insta

      本文链接:https://www.haomeiwen.com/subject/lxqmvttx.html