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
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。