CocoaPods安装出现SSL verification error
来源:互联网 发布:sql 保存二进制数据 编辑:程序博客网 时间:2024/06/17 04:22
CocoaPods安装出现SSL verification error
2016-11-18 15:14 出处:未知 人气:1817 评论(0)在安装CocoaPods出现了以下问题:
ERROR: SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR: You must add /C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom Certification Authority to your local trusted store
ERROR: SSL verification error at depth 2: self signed certificate in certificate chain (19)
ERROR: Root certificate is not trusted (/C=US/O=GeoTrust Inc./CN=GeoTrust Global CA)
出现这个问题的原因主要是Ruby环境需要2.2版本以上,所以要更新Ruby环境。
更新Ruby环境
0.首先要安装 Homebrew 终端输入这条命令即可 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
1.安装rvm $ curl -L get.rvm.io | bash -s stable
2.装载rvm $ source ~/.rvm/scripts/rvm
3.安装2.3.0版本ruby $ rvm install 2.3.0
4.将2.3.0设为默认 $ rvm use 2.3.0 --default
证书错误问题
$ cd $rvm_path/usr/ssl$ sudo curl -O http://curl.haxx.se/ca/cacert.pem$ sudo mv cacert.pem cert.pem
这样就解决了上面的error
http://www.qingpingshan.com/pc/fwq/165342.html
- CocoaPods安装出现SSL verification error
- CocoaPods安装出现SSL verification error
- 安装cocoapods时候出现错误如下: sudo gem install cocoapods ERROR: While executing gem … (OpenSSL::SSL::SSLErro
- cocoapods安装(最新)解决Error fetching https://ruby.taobao.org/: SSL问题!
- Cocoapods安装问题:ERROR: Possible alternatives: cocoapods
- lftp出现“Fatal Error: Certificate Verification: Not Trusted”问题解决
- Cocoapods安装AVOSCloudIM出现错误
- CocoaPods安装出现的错误
- Cocoapods安装出现的错误
- 安装CocoaPods出现错误解决方法
- 安装cocoaPods出现错误error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not
- 【git】error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfi
- 连接mysql出现警告:Establishing SSL connection without server's identity verification is not recommended
- java连接mysql5.7.17出现Establishing SSL connection without server's identity verification is not recomme
- cocoapods安装pod setup error解决方法
- CocoaPods 安装过程中的 Warning&Error 备忘
- 安装cocoaPods时出现的错误
- 安装Cocoapods, 更新gem出现的问题
- C语言中简单的回调示例
- Android设计模式-代理模式
- MVC 模式和面向接口编程讲解
- caffe学习记录--6--全链接层
- PHP扁平化数组代码
- CocoaPods安装出现SSL verification error
- 解决adobe flash 使用有问题的方法
- 原滋原味的构建Spring Framework源码
- react-navigation 简单使用
- XShell提示Connection closed by foreign host的问题 和 路由器分配IP的规则
- linux下的mysql下载
- JS创建对象之稳妥构造函数模式
- Swift 包管理器教程
- react-navigation使用