Pod install is staying on "Setting up CocoaPods Master repo"

I'm cloning a project from a git repo, but when I execute pod install the first line I see is "Setting up CocoaPods Master repo" and after that I can't see anything more, the console stops there.

I don't know what is happening. Anyone knows what's happening here? Why Does CocoaPods stop there?


Solution 1:

You could try running in verbose mode:

pod install --verbose

That'll show you what cocoa pods are up to:

Setting up CocoaPods master repo

Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
  $ /usr/bin/git clone 'https://github.com/CocoaPods/Specs.git' master
  Cloning into 'master'...

(as suggested here)

For me the above step took quite a long time as the repo (Dec 2016) is now 1.1 GB

Solution 2:

pod install or pod setup fetches whole repo with history when you first time run it. You don't need that commit history.

pod setup
Ctrl +C
cd ~/.cocoapods/repos 
git clone --depth 1 https://github.com/CocoaPods/Specs.git master

It takes around 2 mins on decent network connection (4Mbps). master directory is around 519M big.

Solution 3:

Try this command to track its work.

while true; do
  du -sh ~/.cocoapods/
  sleep 3
done