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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章