Pod install takes too long time

J. Doe picture J. Doe · Dec 26, 2016 · Viewed 10.2k times · Source

I'm trying to install my pods with pod install, it prints

Setting up CocoaPods master repo

and it takes too long time and nothing installing. Is that a bug or that's my mistake? Can I fix that problem?

Answer

Muhammad Fauzi Masykur picture Muhammad Fauzi Masykur · Aug 18, 2017

Yes these problems often occur in first time installation.

So these are what I did to solve it:

1. pod setup

It will do "setting up master" again, DONT' WAIT, continue these steps below

2. Ctrl +C
3. pod repo remove master
4. cd ~/.cocoapods/repos 
5. git clone --depth 1 https://github.com/CocoaPods/Specs.git master

It takes around 5 minutes for me (I think it depends on internet connection), then I can do "pod install".

https://stackoverflow.com/a/40541430/3258003