Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cocoapods setup stuck on pod setup command on terminal

People also ask

How do I remove a pod from terminal?

First, confirm the name of the node you want to remove using kubectl get nodes , and make sure that all of the pods on the node can be safely terminated without any special procedures. Next, use the kubectl drain command to evict all user pods from the node.


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!


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

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


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

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


For insecure people like me who needs an assurance that cocoapods, in fact, is doing the work, try this. The slowest bottleneck is when cocoapods try to clone the entire repo (~300 MB) into ~/.cocoapods

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