2013-06-29 81 views
0

我來源:AdMob聯播蘋果Mach-O的連接錯誤

_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) 

有人可以提供關於我哪裏出錯的指針嗎?

回答

0

您需要鏈接AdSupport.framework才能提供ASIdentifierManager

+0

哦〜非常感謝你 –