Error while integrating admob in iPhone app

為{幸葍}努か 提交于 2020-01-05 04:37:06

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!