Is there a difference between "sudo gem install cocoapods" and "sudo gem install cocoapods --source http://rubygems.org"

时间:2019-04-17 00:41:29

标签: terminal rubygems cocoapods

I tried installing cocoapods using "sudo gem install cocoapods" but received the error message:

ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version (https://rubygems.org/latest_specs.4.8.gz)

I did some googling and saw that somebody used:

"sudo gem install cocoapods --source http://rubygems.org"

I was wondering if its a different version of cocoapods? Is anything different?

Also I ran:

"gem sources -r https://rubygems.org/"

What exactly does this remove and should I add it back?

0 个答案:

没有答案