Can't Update Google AdMob in iOS Project

两盒软妹~` 提交于 2019-12-22 09:02:37

问题


I've integrated Google AdMob into my iOS(Swift) project using Cocoapods. It's working fine.

When I first saw the log message regarding there is an update for AdMod, I ran pod update BUT the message still gets logged and tells me to update AdMob.

From the output of pod update, I see that AdMob is at it's latest version. v 7.8.1 but somehow Xcode does not recognise the change.

Any ideas?

Update

My Podfile:

# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

target 'En Yakın' do
  # Comment this line if you're not using Swift and don't want to use dynamic frameworks
  use_frameworks!

  # Pods for Ara Bul
  pod 'SwiftyJSON'
  pod 'Firebase/Core'
  pod 'Firebase/AdMob'

end

回答1:


The latest version at the time of your question should be 7.9.1.

Did you try update(verbose)?. I recommend you download the cocoaPods applications, makes managing your pods much easier.

https://cocoapods.org/app

Once installed and you open a pod file, you will have 3 options at the top right (install, install verbose and update verbose). I would try them and see if it pushes to the latest update.

If that doesn't work, maybe try uninstalling the SDK from cocoa pods. Restart your xCode project and try installing the pod again.

If that also doesn't work that I would try installing the AdMob SDK directly via

pod 'Google-Mobile-Ads-SDK'.

I am not sure what the difference is between the regular one and the firebase one, maybe the firebase one slightly different.

Note: As member Eric Lichtenschlag has so kindly pointed out

AdMob sometimes does releases outside of the Firebase release cycle, and updates the Google-Mobile-Ads-SDK pod. However, when Firebase releases, their Firebase/AdMob pod depends on a specific version of Google-Mobile-Ads-SDK so that it's stable and your Firebase experience doesn't change in between Firebase releases. Currently, the latest Firebase release is pointing to Google-Mobile-Ads-SDK 7.8.1. On the next Firebase update, it will point to the latest version of AdMob, which is currently 7.9.1.

Hope this helps.



来源:https://stackoverflow.com/questions/38654622/cant-update-google-admob-in-ios-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!