为此,我正在尝试将 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/