Cocoapods: pod setup taking a long time

Created on 22 Nov 2016  路  13Comments  路  Source: CocoaPods/CocoaPods

I installed cocoapods

sudo gem install cocoapods
then I run

cordova requirements

and get this output

The CocoaPods repo has not been synced yet, this will take a long time (approximately 500MB as of Sept 2016). Please runpod setupfirst to sync the repo.

I then execute

pod setup

but it is just stuck there FOREVER

What should I do???

Most helpful comment

pod setup clones the master repo into ~/.cocoapods/repos/master. You could do this manually:

mkdir -p ~/.cocoapods/repos
git clone https://github.com/CocoaPods/Specs ~/.cocoapods/repos/master

If it complains that ~/.cocoapods/repos/master already exists, than you can just delete that directory and repeat the steps. Once this is done, go ahead and run pod setup again to make sure everything is working okay.

All 13 comments

pod setup clones the master repo into ~/.cocoapods/repos/master. You could do this manually:

mkdir -p ~/.cocoapods/repos
git clone https://github.com/CocoaPods/Specs ~/.cocoapods/repos/master

If it complains that ~/.cocoapods/repos/master already exists, than you can just delete that directory and repeat the steps. Once this is done, go ahead and run pod setup again to make sure everything is working okay.

I'm trying to clone this repo, but it gets stuck at 9%

EDIT 1: One thing that I've noticed is that when DL speed goes above 1MB/s the DL gets stuck.

EDIT 2: this time I got to 65% and DL speed went over 2MB/s and it got stuck.

Hmm. GitHub is having an issue right now, but it's being reported as affecting Github pages. I'm not sure there's more I can suggest aside from maybe waiting until status.github.com is green and then trying again.

How can I do this by downloading .zip file? What are the steps after I've downloaded .zip file??

Which .zip file are you referring to? Sorry, I'm not familiar.

Ah. You could unzip it into the ~/.cocoapods/repos/master location, but I'd be surprised if there's a .git folder. You'll likely still have to run git init and then manually setup the remote, etc.

But how would I do that?

VIsit the link above and click here:

screen_shot_2016-11-22_at_8_42_19_am

You can unzip it with the unzip command, then you can use mv to move it into place. Once that done, you can cd into that directory, run git init, and then do git remote add origin https://github.com/CocoaPods/Specs.git. That said, you'll still have to git pull at some point, which will get you back to where you started. I recommend just trying again once Github status is green.

Closing as there's not much more we can do here.

You can unzip it with the unzip command, then you can use mv to move it into place. Once that done, you can cd into that directory, run git init, and then do git remote add origin https://github.com/CocoaPods/Specs.git. That said, you'll still have to git pull at some point, which will get you back to where you started. I recommend just trying again once Github status is green.

Any one who can please walk me through these steps slowly.. am confusing the location to extract the folder. Please

I have downloaded the file on my pc and extracted it, but where should i put it and what should i do..? somebody please help.. trying this for months now

Was this page helpful?
0 / 5 - 0 ratings