You must add /O=Digital Signature Trust Co./CN=DST Root CA X3 to your local trusted store Fetching:

cocoapose很久不用,格式有些变化呀。。。

之前一直是这几步:

(1)gem source -l 查看 source
(2)gem source -remove https://rubygems.org/
(3)gem source -a https://ruby.taobao.org/
(4)sudo gem install cocoapods

现在安装你会发现


还有,最后一步执行,你会发现:


报错,查看原因之后,原来是这样子:

用:sudo gem install -n /usr/local/bin cocoapods --pre  代替最后一句执行,就可以了!

➜  ~ sudo gem install -n /usr/local/bin cocoapods --pre 

ERROR:  SSL verification error at depth 1: unable to get local issuer certificate (20)

ERROR:  You must add /O=Digital Signature Trust Co./CN=DST Root CA X3 to your local trusted store

ERROR:  SSL verification error at depth 1: unable to get local issuer certificate (20)

ERROR:  You must add /O=Digital Signature Trust Co./CN=DST Root CA X3 to your local trusted store

Successfully installed xcodeproj-1.5.1

Fetching: ruby-macho-1.1.0.gem (100%)

Successfully installed ruby-macho-1.1.0

Fetching: molinillo-0.5.7.gem (100%)

Successfully installed molinillo-0.5.7

Fetching: cocoapods-trunk-1.2.0.gem (100%)

Successfully installed cocoapods-trunk-1.2.0

Fetching: cocoapods-downloader-1.1.3.gem (100%)

Successfully installed cocoapods-downloader-1.1.3

Fetching: cocoapods-core-1.3.0.rc.1.gem (100%)

Successfully installed cocoapods-core-1.3.0.rc.1

Fetching: cocoapods-1.3.0.rc.1.gem (100%)

Successfully installed cocoapods-1.3.0.rc.1

Parsing documentation for xcodeproj-1.5.1

Installing ri documentation for xcodeproj-1.5.1

Parsing documentation for ruby-macho-1.1.0

Installing ri documentation for ruby-macho-1.1.0

Parsing documentation for molinillo-0.5.7

Installing ri documentation for molinillo-0.5.7

Parsing documentation for cocoapods-trunk-1.2.0

Installing ri documentation for cocoapods-trunk-1.2.0

Parsing documentation for cocoapods-downloader-1.1.3

Installing ri documentation for cocoapods-downloader-1.1.3

Parsing documentation for cocoapods-core-1.3.0.rc.1

Installing ri documentation for cocoapods-core-1.3.0.rc.1

Parsing documentation for cocoapods-1.3.0.rc.1

Installing ri documentation for cocoapods-1.3.0.rc.1

7 gems installed

则说明成功了

安装完成之后,创建项目,终端命令,进入 ******.xcodeproj所在的文件夹,

touch podfile

vim podfile

编辑podfile文件(点击i 为可编辑)

完成之后 按 Esc :wq

pod install

 关闭项目,双击IOS_RuiSuKe.xcworkspace 打开,即可!



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值