Cocoapods setup stuck on pod setup command on terminal

后端 未结 12 2135
耶瑟儿~
耶瑟儿~ 2020-12-12 12:25
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: Insecu         


        
相关标签:
12条回答
  • 2020-12-12 12:59

    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
    
    0 讨论(0)
  • 2020-12-12 13:03

    For me in China

    I have to use SSH and --depth=1 to boost up!

    pod repo remove master
    git clone --depth=1 git@github.com:CocoaPods/Specs.git  ~/.cocoapods/repos/master 
    pod setup
    
    0 讨论(0)
  • 2020-12-12 13:04

    --VMWare Workstation--virtualizedMac--NetworkSetting--Problem

    After like 100 tries I got it to work! I have tried nearly everything described here but nothing solved the problem. It randomly stopped by cloning into master between 0% and 97%. In Activity Monitor I saw the network traffic has stopped.

    Finally I have changed the network setting from NAT to BRIDGE. This was the solution!

    0 讨论(0)
  • 2020-12-12 13:05

    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

    0 讨论(0)
  • 2020-12-12 13:07

    Just setup the master repo, was excited to see that we have a download progress, see screenshot ;)

    CocoaPods release 1.2.0 (Jan 28) fixes this issue, thanks to all contributors and Danielle Tomlinson for this release.


    0 讨论(0)
  • 2020-12-12 13:08

    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

    0 讨论(0)
提交回复
热议问题