cocoapods - 'pod install' takes forever

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

    After a half of the day of investigating why Analyzing Dependencies takes forever, I found out that I was installing the latest Firebase pod (7.1.0), which relies on GoogleAppMeasurement version 7.1.0, and there was another pod, which is an ad mediation framework, which includes Google-Mobile-Ads-SDK. This SDK was relying on a much lower version of GoogleAppMeasurement ~ 6.0. I was able to install the pods by commenting out the conflicting pod from the ad mediation. Something like this:

    # Ad network framework
      pod 'SomeMediationNetwork/Core'
    #  pod 'SomeMediationNetwork/GoogleMobileAds' # - the conflicting pod
      pod 'SomeMediationNetwork/Facebook'
      pod 'SomeMediationNetwork/SmartAdServer'
      pod 'SomeMediationNetwork/Mopub'
    

    I had to contact the ad mediation library publisher to fix this issue, most probably by updating to the latest Google-Mobile-Ads-SDK pod and releasing a new version.

    I hope this one helps some other folks who are banging their head

提交回复
热议问题