cocoapods - 'pod install' takes forever

前端 未结 20 1257
面向向阳花
面向向阳花 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:51

    Possible solutions:

    1. Updating Cocoa Pods may solve this issue
    2. Clean and fresh install pods again

    Updating CocoaPods

    Open terminal and type:

    $ sudo gem update cocoapods
    

    Reinstall Pods

    Step 1

    Remove all the pods from your project (tricky part):

    Manually

    1. Remove all Pods records on Build Phases of your project (Marked Red)

    1. Remove libPods.a under Frameworks folder

    1. Now head to project directory and remove Podfile.lock*, **Pods folder and Workspace (Remove from Trash too).

    Automatically using CocoaPods De-Integrate

    Install

    $ [sudo] gem install cocoapods-deintegrate
    

    Run

    $ pod deintegrate
    

    Step 2

    Here we are going through at installing the Pods again

    Change your location your directory

    $ cd yourprojectdirectory
    

    Edit podfile by adding lines you need to it

    $ open -a Xcode podfile 
    

    or

    $ nano podfile
    

    FINALLY install the pod again

    $ pod install
    

    Hope this helps

提交回复
热议问题