码迷,mamicode.com
首页 > 系统相关 > 详细

Mac OS 安装cocoapods出现SSL connection错误

时间:2015-06-06 22:09:58      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:folder   source   solved   证书   

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

Mac OS 安装cocoapods出现SSL connection错误

标签:folder   source   solved   证书   

原文地址:http://linjohn.blog.51cto.com/1026193/1659270

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!