ios - 在 Admob 中介 SDK 中集成 iAd 适配器时出错

标签 ios objective-c admob iad

为此,我正在尝试将 iAds 集成到 Admob 中介 SDK 中,我从 Mediation website Download Link 下载了 iAdListAdapter并将其添加到我的 xcode 项目中,但是现在当我尝试编译该项目时出现以下错误:

Undefined symbols for architecture i386:
"_ADBannerContentSizeIdentifierLandscape", referenced from:
  -[GADMAdapterIAd getBannerWithSize:] in libAdapterIAd.a(GADMAdapterIAd.o)
  -[GADMAdapterIAd adjustADBannerToAdSize] in libAdapterIAd.a(GADMAdapterIAd.o)
"_ADBannerContentSizeIdentifierPortrait", referenced from:
  -[GADMAdapterIAd getBannerWithSize:] in libAdapterIAd.a(GADMAdapterIAd.o)
  -[GADMAdapterIAd adjustADBannerToAdSize] in libAdapterIAd.a(GADMAdapterIAd.o)
"_OBJC_CLASS_$_ADBannerView", referenced from:
  objc-class-ref in libAdapterIAd.a(GADMAdapterIAd.o)
"_OBJC_CLASS_$_ADInterstitialAd", referenced from:
  objc-class-ref in libAdapterIAd.a(GADMAdapterIAd.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

请指导我做错了什么或将 iAds 添加到 Mediation SDK 的正确方法是什么:我正在使用 XCode 4.6 和 min sdk 5.0

非常感谢任何帮助!

最佳答案

原来我需要在项目中添加 iAd.Framework 并删除 -all_load 标志,这解决了问题。

关于ios - 在 Admob 中介 SDK 中集成 iAd 适配器时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15091303/

相关文章:

ios - 存储具有复杂数据结构的 JSON 文件以供以后使用的最佳方式是什么?

objective-c - iPad 应用程序 - CALayer 使其在旋转时非常滞后

ios - WebKit View 未连接到 ViewController(Control + 拖动)

ios - libGoogleAdMobAds 9.6.3 armv7 构建错误

ios - 广告覆盖了tableview

ios - 我如何获取应用程序开发人员发布的应用程序商店评论

objective-c - 如何从头开始在 iOS 上创建 JPEG 图像

ios - CocoaPods 和 Swift - 值得信赖吗?

ios - '通讯错误 : <OS_xpc_error:' while recording video

android - GoogleAdMobAdsSdk-4.0.4.jar 不包含 AdManager?