ios - 在 iOS 中找不到模块 'GoogleMobileAds'

标签 ios xcode unity-game-engine admob

遇到了类似问题的主题,但无法解决。

在适用于 ios 的 Unity 应用程序中集成 Admob 广告,并在 XCode 中加载项目。添加框架 GoogleMobileAds 只需将其拖到项目窗口中即可。不幸的是,当您构建项目时,会显示错误。

我尝试替换 GoogleMobileAds.h#import <GoogleMobileAds/GoogleMobileAds.h>在 GADUNativeCustomTemplateAd.h 中,但它对我没有帮助。

使用 Google 移动广告 Unity 插件 v3.0.4 Xcode 版本 7.3.1 错误:未找到伞 header googlemobileads h 1 img 2 img

最佳答案

我终于在这个视频中找到了解决方案https://www.youtube.com/watch?v=rxO_rcMxGU4 ,总结如下:

  1. https://firebase.google.com/docs/admob/ios/download 下载 googlemobileadssdkios.zip

  2. 解压文件。转到项目导航器 View 。将解压文件移至 Framework 文件夹内。

  3. 构建代码,如果不起作用,则将给出错误的字符串替换为

    • (void)loadRequest:(GADRequest *)带有AdUnitID的请求:(NSString *)adUnitID userID:(NSString *)userID {

[self.rewardBasedVideo loadRequest:带有AdUnitID的请求:adUnitID]; }

关于ios - 在 iOS 中找不到模块 'GoogleMobileAds',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38634925/

相关文章:

c# - Unity3d FullInspector 和 Json.net 未序列化数据

ios - 如何在ios中等待http请求的响应

ios - mkannotation View 中的按钮操作不起作用?

xcode - 如何在 Xcode 中缩进多行?

ios - 在iOS 7和xCode 5发布之后,是否可以将在xCode 4上生成的二进制文件上传到AppStore?

c# - 您正在使用通过 http 下载的方式。目前 Unity 将 NSAllowsArbitraryLoads 添加到 Info.plist 以简化转换

c# - NPC 穿过墙壁

php - iOS Xcode NSURL 参数太多

iphone - 为 UITableView 附件设置自定义 BG 图像?

ios - UICollectionViewCell 仅在逐步调试时显示