Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapods staying on "analyzing dependencies"

Tags:

ios

cocoapods

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?

like image 975
Noor Avatar asked Oct 09 '22 02:10

Noor


People also ask

Why does POD install take so long?

As mentioned in other answers, It takes forever because the size of cocoapods master repo is huge. This time can be reduced using the following steps. 1) Create a private specs file path on your github repository. Provide this path https://github.com/yourpathForspecs.git' as a source in your podfile.

How do I add dependencies to CocoaPods?

After you have initially installed CocoaPods into your project, you can add new dependencies (or remove unused ones) by editing the Podfile. Then simply run pod install again.

Why do CocoaPods use Ruby?

Ruby was a good choice to let users monkey-patch whatever they needed for their projects. Ruby is an excellent language for CLI tools that do a lot of string manipulation. They made an effort to make sure @CocoaPods would work with the Ruby that shipped with OS X, even when not having the Xcode CLI Tools installed.

Do I need ruby for CocoaPods?

To be able to work with CocoaPods, you need to specify the path to the Ruby SDK and install the CocoaPods gem.


1 Answers

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
like image 124
Gabriel Jensen Avatar answered Oct 26 '22 10:10

Gabriel Jensen