pod安装返回致命错误:SSL证书问题? [英] pod install returns fatal error: SSL certificate issue?

查看:407
本文介绍了pod安装返回致命错误:SSL证书问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装CocoaPods通过以下说明:



现在我打开一个Xcode项目,其中有CocoaPods,我打开终端,进入该项目文件夹,根据需要输入pod install,我收到一个错误:

  $ pod install 
设置CocoaPods master repo
[!] Pod :: Executable clone'https://github.com/CocoaPods/Specs.git'master

克隆到master...
致命:无法访问https://github.com/CocoaPods/Specs.git/:SSL证书问题:无效的证书链

/Library/Ruby/Gems/2.0.0/gems/ cride-0.4.0 / lib / claide / command.rb:217:inrescue in run:undefined方法`verbose?'for nil:NilClass(NoMethodError)
从/Library/Ruby/Gems/2.0。 0 / gems / claide-0.4.0 / lib / claide / command.rb:210:在`run'
从/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/ cocoapods / command.rb:51:在`run'
从/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/bin/pod:24:in`< top(必需) >'
来自/ usr / bin / pod:23:在`load'
来自/ usr / bin / pod:23:in`< main>'

我不知道这是什么。有人能帮我吗?这是我第一次尝试对OS X Mavericks上的CocoaPods做任何事情。



谢谢!

解决方案

Github的SSL证书从我的结尾看起来很好,但也许你有一些原因不信任它,或者你正在使用代理。要解决:



在Mac OS X 10.9(Mavericks)上使用Safari浏览器(不是Chrome,Firefox或Opera),请访问。


I just installed CocoaPods by following these instructions:

Now I opened an Xcode project which has CocoaPods in it, I opened the terminal, went into that project folder and typed "pod install" as required, and I am getting an error back:

$ pod install
Setting up CocoaPods master repo
[!] Pod::Executable clone 'https://github.com/CocoaPods/Specs.git' master

Cloning into 'master'...
fatal: unable to access 'https://github.com/CocoaPods/Specs.git/': SSL certificate problem: Invalid certificate chain

/Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:217:in `rescue in run': undefined method `verbose?' for nil:NilClass (NoMethodError)
    from /Library/Ruby/Gems/2.0.0/gems/claide-0.4.0/lib/claide/command.rb:210:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/lib/cocoapods/command.rb:51:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.29.0/bin/pod:24:in `<top (required)>'
    from /usr/bin/pod:23:in `load'
    from /usr/bin/pod:23:in `<main>'

I have no idea what this is about. Can someone help me? This is the first time I try to do anything with CocoaPods on OS X Mavericks.

Thanks!

解决方案

Github's SSL certificate looks fine from my end, but maybe you have distrusted it for some reason, or you are using a proxy. To resolve:

Using the Safari browser (not Chrome, Firefox or Opera) on Mac OS X 10.9 (Mavericks) visit https://github.com (no www.).

If an alert pops up, press the "Show Certificate" button, check "Always Trust", and then "Continue."

If no alert pops up, press the green or gray Security button by the URL:

Then make sure "Always trust" is checked on the certificate.

If this doesn't resolve your issue, try temporarily disabling any proxy servers you might be running, such as Charles.

After that, pod install should work.

Note: A portion of my answer text was copied from this answer.

这篇关于pod安装返回致命错误:SSL证书问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆