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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With