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?
I tried various solutions, nothing worked. Downloading 100MB took me about 30 minutes.
Then I connected via VPN to a server in the US and ran pod install --verbose
again, download speed went up and installing 100MB took 20 seconds.
Looks like download speed is limited for some locations (in this case South America).
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".
Expanding my comment.
CocoaPods is so popular and heavy, so GitHub is limiting rate for downloading.
http://thenextweb.com/dd/2016/03/08/cocoapods-popular-basically-took-five-github-servers/