Cocoapods staying on "analyzing dependencies"

IosCocoapods

Ios Problem Overview


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?

Ios Solutions


Solution 1 - Ios

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

Solution 2 - Ios

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

Solution 3 - Ios

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

Solution 4 - Ios

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.

Solution 5 - Ios

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.

Solution 6 - Ios

$ pod repo remove trunk

$ pod setup

run above two commands it will solve problem

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionNoorView Question on Stackoverflow
Solution 1 - IosGabriel JensenView Answer on Stackoverflow
Solution 2 - IosajimixView Answer on Stackoverflow
Solution 3 - IosDaniel TovessonView Answer on Stackoverflow
Solution 4 - IosChrisHazeView Answer on Stackoverflow
Solution 5 - IosaaronschachterView Answer on Stackoverflow
Solution 6 - IosSidd RedkarView Answer on Stackoverflow