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)
有人可以提供關於我哪裏出錯的指針嗎?
哦〜非常感謝你 –