GoogleAdMobAds in iphone sdk
I had imported libGoogleAdMobAds.a and Adsupport framework in my projects. and all header files.Linker flag as :- -0bjC.Architecture is armv7. Xcode:- 4.5.2 and ios 4.3 and above.
But still it gives me the below error:-
Undefined symbols for architecture i386:
"_CGSizeFromGADAdSize", referenced from:
-[BannerExampleViewController viewDidLoad] in BannerExampleViewController.o
"_OBJC_CLASS_$_GADBannerView", referenced from:
objc-class-ref in BannerExampleViewController.o
"_OBJC_CLASS_$_GADRequest", referenced from:
objc-class-ref in BannerExampleViewController.o
"_kGADAdSizeBanner", referenced from:
-[BannerExampleViewController viewDidLoad] in BannerExampleViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Can anyone help me how to solve this.
Thanks in advance
There are two steps you have to take:
AbMod = [GADBannerView alloc]initWithFrame:CGRectMake(0,430,320,50)];
for anyone who is getting this problem see if you are missing this file: libGoogleAdMobAds.a
its solve my problem.
idan m.
https://developers.google.com/mobile-ads-sdk/docs/admob/fundamentals
pls check the above url and download latest google sdk and try one's
note:have u add IAD framework to ur project
链接地址: http://www.djcxy.com/p/11832.html上一篇: 在导航栏前添加标题图片