I am trying to setup cocoapods to my iOS application But when I go for command:
sudo gem update --system
I get error : Latest version currently installed. Aborting.
When I go to next step for cocoapods:
sudo gem install cocoapods
I get error on Mac OS 10.8.5 :
ERROR: Error installing cocoapods:
cocoapods-trunk requires Ruby version >= 2.0.0.
I tried same on Mac OS 10.9.4 and getting error :
ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: Connection refused - connect(2) (https://rubygems.org/latest_specs.4.8.gz)