cocoapods - 'pod install' takes forever

前端 未结 20 1200
面向向阳花
面向向阳花 2020-11-27 09:20

I was trying to update the existing pods with the pod install command, but it takes forever to run.

The verbose mode shows it was stuck at the following

相关标签:
20条回答
  • 2020-11-27 09:38

    Just go through the below step-by-step:

    Download https://github.com/CocoaPods/Specs/archive/master.zip

    RUN the Below commands in terminal:

    pod setup --verbose

    Open new tab in the terminal and RUN

    mv ~/.cocoapods/repos/master/.git ~/tempSpecsGitFolder

    open master.zip (unzipping it)

    mv Specs-master ~/.cocoapods/repos/master

    mv ~/tempSpecsGitFolder ~/.cocoapods/repos/master/.git

    cd [project folder]

    pod install --no-repo-update

    0 讨论(0)
  • 2020-11-27 09:43

    I ran into the same problem, and I solved it by running the following commands which is given here

    pod repo remove master
    pod setup
    pod install
    
    0 讨论(0)
  • 2020-11-27 09:43

    This is what worked for me :

    1. Delete all the content under ~/.CocoaPods
    2. Delete your existing Podfile.lock and Pods folder.
    3. Leave your PodFile intact.
    4. Run sudo gem install cocoapods --verbose
    5. Run pod install --verbose

    I recommend using the --verbose flag since Terminal is not great when giving progress on a command action. The verbose option helps a lot!

    0 讨论(0)
  • 2020-11-27 09:45

    I had the same issue. After running

    pod install
    Setting up CocoaPods master repo
    

    The iterm2 was stuck on Setting up CocoaPods.

    I solved the issue by running

    sudo gem install CocoaPods
    

    This is mentioned in the CocoaPods website

    0 讨论(0)
  • 2020-11-27 09:46

    Try clearing your CocoaPods cache, re-download and re-install all pods as described here

    rm -rf "${HOME}/Library/Caches/CocoaPods"
    
    rm -rf "\`pwd\`/Pods/"
    
    pod update
    
    0 讨论(0)
  • 2020-11-27 09:47

    I fixed this issue like that:

    rm -fr ~/Library/Caches/CocoaPods && \
    gem update --system && \
    gem update && \
    gem cleanup && \
    pod setup
    

    Reference: http://blog.cocoapods.org/Repairing-Our-Broken-Specs-Repository/

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