ios – 在Admob中介SDk中集成iAd适配器时出错

前端之家收集整理的这篇文章主要介绍了ios – 在Admob中介SDk中集成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添加到中介SDK中的正确方法是什么:我正在使用最小sdk 5.0的XCode 4.6

任何帮助真的很感激!

解决方法

原来我需要添加iAd.Framework并在项目中删除-all_load Flag,这解决了问题.
原文链接:https://www.f2er.com/iOS/328821.html

猜你在找的iOS相关文章