143

I'm using cocoapods to manage my dependencies. All have been working fine. Now, When I'm creating a new project, added the following to my podfile,

platform :ios, '6.1'
pod 'RestKit', '~>  0.20.0'

when i'm doing pod install, it is continually staying on analyzing dependencies.

Any idea why this problem?

Noor
  • 19,638
  • 38
  • 136
  • 254

7 Answers7

384

I had the same problem, and since my output with --verbose was different than the linked SO answer, I'm including that response along with a verification that it worked for me:

  $ pod repo remove master
  $ pod setup
  $ pod install
Gabriel Jensen
  • 4,082
  • 1
  • 17
  • 14
  • 1
    Weird. My cocoapods worked great for a really long time, then just stopped. This fixed it! Thanks – Toadums Sep 17 '14 at 04:53
  • 34
    when ever you install a new version of xcode we need to do follow these steps – Iqbal Khan Sep 23 '14 at 12:08
  • 3
    wow. work like a charm, and no tutorial mentions this :( thanks :) – hqt Oct 15 '14 at 15:47
  • 2
    Just FYI, I had this same issue then I realized that I had un-commited changes to my project. I simply staged & committed them, ran ```$ pod install``` again and it worked. – i2097i Mar 16 '15 at 00:45
  • 1
    works sometimes, but it is helpfull to append --verbose at end of each command to track details of $ pod setup where it might get stuck again – Ian Pinto Jan 04 '16 at 09:29
  • @Developer um.. that's a pretty bold statement. can you tell us how/why? A reference wouldn't hurt – abbood Sep 17 '16 at 06:57
14

Another way to fix that is to delete the Pods folder and the Podfile.lock file and run pod install again.

ajimix
  • 974
  • 7
  • 16
5

As of CocoaPods version 1.8.0 trunk is used instead of master. So you need to execute the following commands:

$ pod repo remove trunk
$ pod setup
$ pod install
Daniel Tovesson
  • 2,550
  • 1
  • 30
  • 41
1

Something that seemed to work for me:

  • Cancel first attempt using Ctrl-C
  • Reattempt using pod install

Also, once the pod has installed successfully, be sure to close the current project before opening the project.workspace.

ChrisHaze
  • 2,800
  • 16
  • 20
0

i2097i's comment was the fix for me (so I can't take credit for this, and can't seem to upvote his comment).

Check for any uncommitted changes (I had just added my Podfile but it was not committed). Staging and committing got pod install working.

0

$ pod repo remove trunk

$ pod setup

run above two commands it will solve problem

0
pod repo update
pod install

easy and quick fixed my problem

Ryan110
  • 710
  • 4
  • 19