无法在 iOS 项目中更新 Google AdMob

Can#39;t Update Google AdMob in iOS Project(无法在 iOS 项目中更新 Google AdMob)
本文介绍了无法在 iOS 项目中更新 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 update 但该消息仍然被记录并告诉我更新 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.

有什么想法吗?

更新

我的播客文件:

# 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.

您是否尝试过更新(详细)?我建议您下载 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.

如果这也不起作用,我会尝试直接通过安装 AdMob SDK

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

我不确定普通版和firebase版有什么区别,也许firebase版略有不同.

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 pod.但是,当 Firebase 发布时,他们的 Firebase/AdMob pod 依赖于特定版本的 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 项目中更新 Google AdMob的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Why local notification is not firing for UNCalendarNotificationTrigger(为什么没有为UNCalendarNotificationTrigger触发本地通知)
iOS VoiceOver functionality changes with Bundle Identifier(IOS画外音功能随捆绑包标识符而变化)
tabbar middle tab out of tabbar corner(选项卡栏中间的选项卡角外)
Pushing UIViewController above UITabBar(将UIView控制器推送到UITabBar上方)
Dropbox Files.download does not start when number of files in folder is gt; 1000(当文件夹中的文件数为1000时,Dropbox Files.Download不会启动)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)