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! While you're at it, check out some resources Treehouse students have shared here.

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 Build a Photo Browser iPhone App Connecting to an API using OAuth Introducing API and OAuth 2.0

Anuj Verma
Anuj Verma
11,825 Points

Install pod stuck at Analyzing Dependencies

I have installed Cocoa Pods and followed all the steps in the video in the podfile.

My terminal has been stuck at the below for a very long time.

Photo Bombers anuj.verma$ pod
Analyzing dependencies

Not sure what to do from here.

4 Answers

Stone Preston
Stone Preston
42,016 Points

press control + C to stop the current task and then try running the pod command again

Anuj Verma
Anuj Verma
11,825 Points

Well that did the trick! Not sure what happened, just a hiccup maybe?

Tiger Wang
Tiger Wang
26,548 Points

It was because cocoapods have dependence on git server, don't know where are you now. For me, I am in China right now, and some part of git service were blocked, it might work sometimes, but get stuck almost every time. To solve this, I found a monitor server of which is hosted by a huge local company called taobao.com.

1 change you gem source to you local server(in case you have a local server), what I did is like this:

  $ gem sources --remove https://rubygems.org/
  $ gem sources -a http://ruby.taobao.org/
  #check the source by this
  $ gem sources -l

2 setup you pod with this:

  $ pod setup

Even you did all of these above, it still remains stuck, you can try this:

   $ pod repo remove master
   $ pod setup
   $ pod install

Hope this will be helpful.

Charlie O'Shea
Charlie O'Shea
18,737 Points

By the way mine was stuck on analysing dependencies for about 5 minutes, to the point that I came on here to find a thread, but it's just finished now successfully, so I'd recommend waiting a while longer I guess, go and get a coffee or something.

lideo
lideo
12,662 Points

Same here. You just have to wait a while.