我的来源:
_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 :(得分:0)
您需要链接AdSupport.framework以提供ASIdentifierManager
。