Mac OS 安装cocoapods出现SSL connection错误
gem source -r gem source -a gem install cocoapods
或者安装证书:
This is what solved it for me: Install this certificate:https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem
In this folder: {rubyfolder}\lib\ruby\2.1.0\rubygems\ssl_certs
This way you don‘t have to add insecure sources.
More info here: https://gist.github.com/luislavena/f064211759ee0f806c88
本文出自 “平凡之路” 博客,请务必保留此出处http://linjohn.blog.51cto.com/1026193/1659270
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。