Error log when executing the app in ios simulator device. I'm using iOS8 simulator with libgdx latest build 1.4.1.
2014-12-10 13:07:42.902 IOSLauncher[1395:56847] [debug] IOSApplication: iOS version: 8.0
2014-12-10 13:07:42.907 IOSLauncher[1395:56847] [debug] IOSApplication: scale: 2.0
java.lang.NoClassDefFoundError: org/robovm/apple/uikit/UIAcceleration
at com.badlogic.gdx.backends.iosrobovm.IOSInput.<clinit>(IOSInput.java)
at com.badlogic.gdx.backends.iosrobovm.IOSApplication.didFinishLaunching(IOSApplication.java)
at com.badlogic.gdx.backends.iosrobovm.IOSApplication$Delegate.didFinishLaunching(IOSApplication.java)
at org.robovm.apple.uikit.UIApplicationDelegate$ObjCProxy.$cb$application$didFinishLaunchingWithOptions$(Unknown Source)
at org.robovm.apple.uikit.UIApplication.main(Native Method)
at org.robovm.apple.uikit.UIApplication.main(UIApplication.java)
at com.mygdx.game.IOSLauncher.main(IOSLauncher.java)
It's 2022 and the issue is still happening on the default project that gdx-setup creates for iOS. I fixed the problem by changing the following line in build.gradle of the main module:
project(":ios") {
apply plugin: "java-library"
apply plugin: "robovm"
dependencies {
implementation project(":core")
api "com.mobidevelop.robovm:robovm-rt:$roboVMVersion"
api "com.mobidevelop.robovm:robovm-cocoatouch:$roboVMVersion"
// api "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-backend-robovm:$gdxVersion"
api "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
api "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-ios"
api "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"
}
}
I had the same issue. Maybe the cause is different because I am replying in 2021 while this issue is from 2014
Anyway, in my case in the build.gradle file I replaced the 'implementation' for the 'api' when importing the libraries causing the issue. This solved the problem
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