Cocoapods setup stuck on pod setup command on terminal

84,627

Solution 1

It is not stuck. I thought the same until I went to the "Activity Monitor" of the system and checked the "Network" tab.

Then you will see that something is being downloaded. A process called git-remote-http is in charge of this.

Screenshot 1

Just wait! It happened the same for me :)

Good luck!

Solution 2

To get a progression, you can clone master yourself:

pod repo remove master
git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
pod setup

Solution 3

This might be due to the http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/ issue... You will have to remove the repo and re-setup it...

pod repo remove master
pod setup

worked for me

Answered in below question as well, Error on pod install

Solution 4

I think you need to follow the steps to get rid of the situation and also add --verbose to check whats is happening in front of each command eg:

$ pod setup --verbose
  • pod repo remove master
  • pod setup
  • pod install

Solution 5

This is not Stuck or not doing anything its downloading/cloning repository (total size is around 360MB, I am not sure)

1) Open Activity Monitor

2) Select Network Tab

3) Check bellow Google chrome -> git-remote-https

enter image description here

Share:
84,627
sanjay
Author by

sanjay

I Am a Technology Learner,Game Programmer,........................

Updated on October 03, 2021

Comments

  • sanjay
    sanjay over 2 years
    MacBook-Pro:~ skbc$ pod setup --verbose
    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin13/rbconfig.rb:212: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
    
    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'...
    

    Have gone through resources provided by Cocoapods website, SO and few video tutorials. Nothing happening even after waiting for a couple of hours, however still trying to figure out what may be the problem is?

    I would very much appreciate your comments and suggestions.

  • Pavan Kotesh
    Pavan Kotesh over 9 years
    Do I need to do this or I should wait as suggested in the answer by @Manuel M. ?
  • Johannes
    Johannes over 9 years
    Ha ha, even removing spec repo 'master' takes forever here... :/
  • Hahnemann
    Hahnemann over 9 years
    Excellent tip about Activity Monitor. Thank you!
  • Ammar Mujeeb
    Ammar Mujeeb over 8 years
    and for me quitting this process was the quickest way to start the pod process once it was stuck on "Updating local specs repositories" on pod install
  • iphonic
    iphonic over 8 years
    In both cases pod install or, pod setup it updates local repository. We don't have choice wait as suggested by @Maunel M, it works after sometime.
  • Ashok
    Ashok over 8 years
    "Activity Monitor"->"Network" tab !! nice tracking to make sure we are not stuck.
  • An Nguyen
    An Nguyen over 8 years
    I use command below to boost up the cloning time: git clone --depth=1 https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
  • Amit
    Amit about 8 years
    Any reason the download happening is so slow. (26 KB/s)
  • Daniel Schlaug
    Daniel Schlaug about 8 years
    I'd blame github which have felt awfully slow these past days.
  • Matrosov Oleksandr
    Matrosov Oleksandr about 8 years
    cool man, it works perfect, but seems when we already pull some data form git then there is still stack for installing operation. how we can track if it works or not
  • Cœur
    Cœur about 8 years
    CocoaPods 1.0.0 will not be officially supporting shallow clones anymore. It will even attempt to --unshallow: github.com/CocoaPods/CocoaPods/issues/5016
  • Cœur
    Cœur about 8 years
    @AnNguyen CocoaPods 1.0.0 will not be officially supporting shallow clones anymore. It will even attempt to --unshallow: github.com/CocoaPods/CocoaPods/issues/5016
  • Cœur
    Cœur about 8 years
    Github and CocoaPods are discouraging --unshallow: github.com/CocoaPods/CocoaPods/issues/…
  • J.J.
    J.J. about 8 years
    Permission denied (publickey). fatal: Could not read from remote repository.
  • johnrubythecat
    johnrubythecat almost 8 years
    Good directions, and indeed it finall started puling the files. Geez it was only couple hundred MB.
  • Cœur
    Cœur almost 8 years
    @JordanJohnson try my answer if you haven't setup SSH keys for github.
  • Vyacheslav
    Vyacheslav almost 8 years
    One whole date past and I found this solution. I my case I have to retype 'git clone' three times to download it correctly.
  • Admin
    Admin almost 8 years
    pod setup is one time thing or do i have to it for every project ?
  • lerp90
    lerp90 almost 8 years
    This answer + pod setup --verbose helped to calm my impatience with it
  • ePascoal
    ePascoal over 7 years
    well i'm stuck on 92.4Mb. This is painful.
  • kubilay
    kubilay over 7 years
    Thanks, after seeing Activity Monitor, I've decided giving up on Cocoapods forever.
  • JSBach
    JSBach over 7 years
    for late joiners, here is the latest repo size: stackoverflow.com/questions/21022638/…
  • Vaibhav Saran
    Vaibhav Saran over 7 years
    Awesome! I can explain how much research I did today but nothing needed to do :((
  • Konstantinos Natsios
    Konstantinos Natsios over 7 years
    what if also in activity monitor also stops??? although i have stable internet connection
  • Ginzo Milani
    Ginzo Milani over 5 years
    Thank you, you saved me on this issue. MacOS VMWare, had same problem switched to bridge after doing control panel -> repair VMWare then repatching my VMWare for MacOS fixed bridge mode. After fixing bridge mode, and rerunning the setup it went smoothly.
  • Pedro Paulo Amorim
    Pedro Paulo Amorim over 4 years
    Why I am downloading 2Gb?
  • Vladimir Obrizan
    Vladimir Obrizan over 4 years
    Thanks for the solution! At least it shows that something happening. ;)