Libgdx Admob iOS integration does not work

I read a lot of documentation, wrote code, even copied and pasted it, but still nothing works. I downloaded the bindings from here https://github.com/BlueRiverInteractive/robovm-ios-bindings and followed all the steps from here https://github.com/libgdx/libgdx/wiki/Admob-in-libgdx

My project is only iOS and Desktop, I opened eclipse, imported admob-ios and configured it in the build path, I copied the libadmob.a file to ios / libs, and then edited robovm.xml. This is how it looks like

<config> <executableName>${app.executable}</executableName> <mainClass>${app.mainclass}</mainClass> <os>ios</os> <arch>thumbv7</arch> <target>ios</target> <iosInfoPList>Info.plist.xml</iosInfoPList> <libs> <lib>ios/libadmob.a</lib> </libs> <frameworks> <framework>AudioToolbox</framework> <framework>AVFoundation</framework> <framework>CoreGraphics</framework> <framework>CoreTelephony</framework> <framework>MessageUI</framework> <framework>SystemConfiguration</framework> </frameworks> <weakFrameworks> <framework>AdSupport</framework> <framework>StoreKit</framework> </weakFrameworks> 

In my iOS Launcher, here's what it is exactly the same as in the documentation. In my IActivityRequestHandler, I have only one method, which is "showAds (boolean show)", which I use to call from my main application, passing "IActivityRequestHandler.showAds (true);"

When I start, I keep getting this error Called: org.robovm.objc.ObjCClassNotFoundException: GADBannerView on org.robovm.objc.ObjCClass.getByType (ObjCClass.java) on org.robovm.bindings.admob.GADBannerView. (GADBannerView.java) ... 9 more

+5
source share

All Articles