Evgenii Evgenii - 1 year ago 102
iOS Question

Error installing CocoaPods

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


Btw, in the answered questions some are proposed using
sudo get install cocoapods
. You do need
indeed if you are using the system-wide ruby executable. I am using
for my ruby management, it is installed locally for the user and does not need


gem install cocoapods
command worked the following day. Mystery.

Answer Source

I think you could try an older version of the pods.

I tried: sudo gem install cocoapods -v 0.34.0 and this worked for me.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download