Cocoapods setup stuck on pod setup command on terminal

后端 未结 12 2136
耶瑟儿~
耶瑟儿~ 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 13:09

    To execute it, you must pay attention in your Internet connection... if it fails for a sec, the command won't continue, but terminal won't tell you what's happening. If the command fails, continue trying... worked for me! I've used that command!

    $ git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master

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

    I had the same problem with pod install and pod update.

    The problem is that after executing any of these two commands. A process called git-remote-http in monitor activity shows that something is being downloaded. This has been an existing issue with pods and an issue has opened on github. I've tried a lot of the recommended solutions. I was finally able to install the firebase cocoapod on my project.

    Go to

    ~/.cocoapods/repos
    

    if there is a master file here, you will need to delete it.

    You can do something like

    sudo rm -R -i yourmasterdirectory 
    

    do pwd ... you should still be in ~/.cocoapods/repos

    if the above did not work try

    pod repo remove master
    

    Once you have done this run

    git clone https://github.com/CocoaPods/Specs.git master
    

    the next thing you need to do is to is run git fetch --depth=2147483647 - this will convert your local repository of Podspecs to be a full clone as noted here:

    pod install and pod update should work fast as expected.

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

    The time required for Pod setup depends on your Internet connection speed. You can check Activity Monitor application regarding this.

    It is recommended to use pod setup --verbose command instead of pod setup.

    This verbose helps you to see detailed stats while pod is being setup.

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

    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.

    Just wait! It happened the same for me :)

    Good luck!

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

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

    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
    0 讨论(0)
提交回复
热议问题