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

现在安装你会发现

You must add /O=Digital Signature Trust Co./CN=DST Root CA X3 to your local trusted store Fetching:_第1张图片

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

You must add /O=Digital Signature Trust Co./CN=DST Root CA X3 to your local trusted store Fetching:_第2张图片

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

用: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 打开,即可!



你可能感兴趣的:(理论)