I am trying to install the latest CocoaPods (which is 0.36.1) but it shows me the following error.
$ gem install cocoapods
ERROR: Could not find a valid gem 'xcodeproj' (~> 0.23.1) in any repository
sudo get install cocoapods
gem install cocoapods
I think you could try an older version of the pods.
sudo gem install cocoapods -v 0.34.0 and this worked for me.