问题
"_GADAdSizeFromCGSize",referenced from: -[AdWhirlAdapterGoogleAdMobAds getAd] in AdWhirlAdapterGoogleAdMobAds.o Symbols not found for architecture armv7
Linker command failed with exit code 1(use -v to see invocation)
Please help me..not able to find why is it showing?and I have added all the frameworks needed but still it's showing this error.
I am following this tutorial http://www.raywenderlich.com/2011/11/24/how-to-integrate-adwhirl-into-a-cocos2d-game/
回答1:
Make sure you add libGoogleAdMobAds.a to your linked frameworks and that you add -all_load to your Other Linker Flags section in your Build Settings.
回答2:
Faced this issue while adding a new Google AdMob SDK
to an existing project with older SDK.
For some reason, the new SDK was added to the 'Library Search Paths
' along with the older one. So, from Build Settings
, remove un-necessary AdMod SDK Library Search Paths
and you are good to go.
Also add -all_load
to 'Other Linker Flags' to avoid another [GADBannerView private]: unrecognized selector
crash.
来源:https://stackoverflow.com/questions/11825052/error-while-integrating-admob-in-iphone-app