Crash RoboVM after screensaver on iPhone

I tried to install the iOS application on my iPhone using RoboVM. The application works in my iOS simulator, but when I try on the phone, the application simply crashes after the splash screen.

I also got this error:

03/06/14 8:40:38 PM: [ERROR] AppLauncher failed with an exception: 03/06/14 8:40:38 PM: [ERROR] java.lang.RuntimeException: Unexpected response from debugserver: $X00;description:5465726d696e617465642064756520746f207369676e616c2036;#00 03/06/14 8:40:38 PM: [ERROR] at org.robovm.libimobiledevice.util.AppLauncher.launchInternal(AppLauncher.java:708) 03/06/14 8:40:38 PM: [ERROR] at org.robovm.libimobiledevice.util.AppLauncher.launch(AppLauncher.java:814) 03/06/14 8:40:38 PM: [ERROR] at org.robovm.compiler.target.ios.AppLauncherProcess$1.run(AppLauncherProcess.java:67) 

I am on iOS 8 and I am using LibGDX.

How can I solve this problem?

+6
source share
2 answers

Upgrade roboVM to 1.0.0-alpha-04 or later

+1
source

Well, for my case, I found a solution. This error message seems to be nothing more than a failed statement made by the iOS system (at least in my case, the error description number is $X00;description:5465726d696e617465642064756520746f207369676e616c2036;#00 exactly the same). The exact inappropriate statement was not shown or detailed when starting from the device, but when I understood (I don’t know what I don’t know, but I usually develop only for Android), I could run the Xcode simulator (Xcode 6, iOS8 ) from Eclipse, I saw a clear message when starting the application:

 Assertion failed! File: .../libgdx/gdx/jni/Box2D/Collision/Shapes/b2ChainShape.cpp, Line 63. Expression: b2DistanceSquared(v1, v2) > 0.005f * 0.005f 

The crash was resolved by fixing this Box2D related issue; in this case, I created a Loop indicating both the start and end vertices in the same position, while the documentation says that this should not be done when setting the b2ChainShape loop (which will be automatically closed). I did not get this problem with the Android Box2D binary; it either does not have approval messages or ignores the fact that I tried to create a closed chain incorrectly. I suggest you debug your application with the latest Xcode, LibGDX (stable 1.4.1 as of yesterday) and RoboVM version (1.0.0-alpha-4 so far) and try to understand any error messages you may get that aren’t will be displayed when working with the device.

+1
source

Source: https://habr.com/ru/post/970287/


All Articles