Cocoapods: updating pod and installing pod forever

I am trying to update my podfile with the pod update command, but it takes forever. I also took all the steps in accordance with this question cocoapods - 'pod install' takes forever , but nothing has changed. Using the pod update --verbose command, I see that it stops here: Updating spec repo master $ /usr/bin/git pull --ff-only Any suggestion?

+6
source share
2 answers

CocoaPods must download the repository of all podspecs to do its job. It seems like it is pulling an operation that takes a lot of time. I do not know how to speed up this process.

However, subsequent pod operations will be much faster until new commits appear in the master spec repo. Therefore, if you have several upgrade or installation operations, using them together can save you time.

+10
source

There is a speed limit on git servers, which seems to slow down the process. As Fabian said, at the moment there is no valid solution, but the division of the update into separate containers. There’s an explanation in the CocoaPods blog post “Macro-repo rate limiting posthumous” , it seems we need to wait for 1.0.0.beta.7 before they fix the problem. Meanwhile, this Git Issue in the thread recommends starting up so that your Podspecs is a full copy instead of a small clone by running:

 cd ~/.cocoapods/repos/master && git fetch --depth=2147483647 
+1
source

Source: https://habr.com/ru/post/973296/


All Articles