I try to update my podfile using the command pod update
but it takes forever.
I did also all the steps according to this question cocoapods - 'pod install' takes forever but nothing changed.
Using the command pod update --verbose
i see that it stops here: Updating spec repo master
$ /usr/bin/git pull --ff-only
Any suggestion?
CocoaPods has to download a repository of all podspecs to do its work. It seems like it's that pull operation that's taking a long time. I'm not aware of any way to accelerate that process.
However subsequent pod operations will be much faster until new commits are available in the master spec repo. So if you have several update or install operations, doing them together can save you some time.
There is a rate limiting on git servers and that seems to slow down the process.
Like Fabian said there is no valid solution at the moment but splitting the update to individual pods. There is an explanation at the CocoaPods blog Master spec-repo rate limiting post‑mortem, it seems we need to wait for 1.0.0.beta.7
before they fix the issue.
Meanwhile, this Git Issue on the topic recommends to run convert your Podspecs to be a full copy instead of a shallow clone, by running:
cd ~/.cocoapods/repos/master && git fetch --depth=2147483647
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With