0

我的来源:

_admobBanner = [[GADBannerView alloc] initWithFrame:CGRectMake(0, 0, 320, 50)];
_admobBanner.adUnitID = MY_BANNER_UNIT_ID;
_admobBanner.rootViewController = self;
_admobBanner.delegate = self;
[self.view addSubview:_admobBanner];

[NSArray arrayWithObjects:GAD_SIMULATOR_ID, nil];
[_admobBanner loadRequest:[GADRequest request]]; 

添加框架
StoreKit.framework
SystemConfiguration.framework
MessageUI.framework
AudioToolbox.framework

但是在链接我的应用程序时,我看到一个错误:

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_ASIdentifierManager", referenced from:
      objc-class-ref in libGoogleAdMobAds.a(GADIdentifierUtilities.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

有人可以提供有关我哪里出错的指示吗?

4

1 回答 1

0

您需要链接 AdSupport.framework 以提供ASIdentifierManager.

于 2013-06-29T03:21:31.247 回答