9

为此,我正在尝试将 iAds 集成到 Admob 中介 SDK 中,我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的正确方法是什么:我正在使用XCode 4.6和min sdk 5.0

非常感谢任何帮助!

4

2 回答 2

16

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

于 2013-02-27T07:43:38.547 回答
0

对于使用自动链接的人,请在您的任何源文件中包含“#import < iAd/iAd.h >”/

于 2014-12-05T09:23:02.947 回答