Keep getting error messages when compiling newest version of admob on IOS6 SDK

前端 未结 3 1193
-上瘾入骨i
-上瘾入骨i 2020-12-08 09:53

I\'ve downloaded the newest version of googles admob sdk. But now I keep getting the following error when compiling in xcode 4.5 with the latest sdk.

Undefin         


        
相关标签:
3条回答
  • 2020-12-08 10:04

    You probably didn't add AdSupport.framework. Also remember to remove -all_load linker flag.

    0 讨论(0)
  • 2020-12-08 10:13

    On the other way you can fix it without adding extra framework, remove the "-Obj" flag from "Linking > Other Linker Flags" if this flag is not required for your project.

    I my case it was different, I had supported the GoogleConvertionTracking.lib but after couple of release customer decided to remove the GoogleConvertionTracking.lib from client. After removing all required code from client I started getting this error of ""_OBJC_CLASS_$_ASIdentifierManager", referenced from:"

    After going thru the support doc of GoogleConvertionTracking I found that I had added "-Obj" compiler flag under Under Linking > Other Linker Flags.

    * by removing this "-Obj" flag from "Linking > Other Linker Flags" for both rel/deb this error is gone.

    I don't have to add AddSupport.framework to get rid of this error. This change may be helpful for those who don't want to add extra framework to avoid the compilation error.

    0 讨论(0)
  • 2020-12-08 10:16

    AdSupport.framework need in xcode 4.5 and admob 6.x

    0 讨论(0)
提交回复
热议问题