Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS iOS Tools CocoaPods CocoaPods

Dinesh Vijaykumar
Dinesh Vijaykumar
9,879 Points

Can't seem to install CocoaPods

When i try to install CocoaPods on terminal, it gives the error:

Could not find a valid gem 'cocoapods' (>= 0), here is why: Unable to download data from https://rubygems.org/ - no such name (https://api.rubygems.org/latest_specs.4.8.gz)

How do I go about fixing this?

1 Answer

Chris Shaw
Chris Shaw
26,676 Points

Hi Dinesh,

I just installed it on my Mac with no issues, normally when this happens it's because you can't connect to rubygems.org which is usually due to an localized DNS issue either with your PC, router, exchange or ISP in general.

I had this same sort of issue last year and after about an hour it started working again.