无法在iOS Project中更新Google AdMob [英] Can't Update Google AdMob in iOS Project

查看:152
本文介绍了无法在iOS Project中更新Google AdMob的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已使用Cocoapods将Google AdMob集成到了我的iOS(Swift)项目中。

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

当我第一次看到有关AdMod有更新的日志消息时,我运行了 pod更新但是消息仍然记录下来,并告诉我更新AdMob。

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.

pod update 的输出中,我看到AdMob是最新版本。 v 7.8.1,但是Xcode无法识别更改。

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.

有什么想法吗?

更新

我的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


推荐答案

您提出问题时的最新版本应为7.9.1。

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

您是否尝试过update(详细)?我建议您下载cocoaPods应用程序,使您的Pod的管理更加容易。

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

https://cocoapods.org/app

一旦安装并打开pod文件,您将在右上角有3个选项(安装,安装详细信息并更新详细信息)。我会尝试一下,看看是否推送到最新更新。

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.

如果这不起作用,请尝试从可可豆荚中卸载SDK。重新启动您的xCode项目,然后尝试再次安装Pod。

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'。

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.

注意:正如成员Eric Lichtenschlag所指出的那样

Note: As member Eric Lichtenschlag has so kindly pointed out

AdMob有时会在Firebase发行周期之外发布,并更新Google-Mobile-Ads-SDK广告连播。但是,在Firebase发行时,其Firebase / AdMob吊舱取决于特定版本的Google-Mobile-Ads-SDK,以使其稳定,并且Firebase版本之间的Firebase体验不会改变。当前,最新的Firebase版本指向的是Google-Mobile-Ads-SDK 7.8.1。在下一个Firebase更新中,它将指向最新版本的AdMob,当前为7.9.1。

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.

希望这会有所帮助。

这篇关于无法在iOS Project中更新Google AdMob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆