12 Feb 2018
|
tutorial
fix
Release build (shared IPA) crashes when shared with QA team or even being uploaded to Apple Store doesn’t give any reason in crash reports. Device console logs shows as much as:
Feb 12 09:32:12 iPhone assertiond[67] : [DemoApp:620] Port death watcher fired.
This can be reproduced with this minimal snippet – it will produce output while on wire with debugger but once started without it (or from IPA or Apple store) will be silent:
public class Main extends UIApplicationDelegateAdapter {
@Override
public boolean didFinishLaunching(UIApplication application, UIApplicationLaunchOptions launchOptions) {
throw new RuntimeException("You will not see me!");
}
}
With very high chance crash is Java code and it is not causes any log output/crash report because developer didn’t configured app so. What has to be done:
07 Feb 2018
|
fix
idea
History robovm + idea: wrong simulator version is launched than selected in run configuration #262
Fix PR263
It is kind of annoying bug usually not seen as recent version of simulated hardware and SDK is used. But if you have to specify exact version of SDK it is pain. Fix is trivial – include version check in saved Simulator configuration:
31 Jan 2018
|
fix
target-framework
arc
gc
UPDATED with workaround if “new” prefix is still required.
Native ObjectiveC/Swift code that uses shared code RoboVM code as Framework could ends in following:

Sometimes it happens randomly but here is how to make it upon-request:
30 Jan 2018
|
linux windows
hacking
xib2nib
While working on Linux/Windows port and improving xib2nib faced following issue that was happening only when custom build toolchain was used:
*** Assertion failure in -[UIView _nsis_center:bounds:inEngine:forLayoutGuide:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3698.33.7/NSLayoutConstraint_UIKitAdditions.m:3347
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error in compatibility flow'
It was happening when using recently added UIKit functionality in xibs (UILayoutGuide in this case). Long investigation to simple solution is bellow:
24 Jan 2018
|
linux windows
hacking
Apple doesn’t allow SDK/Development Tools to be used on non-apple built hardware. This was limiting RoboVM usage on Linux/Windows platforms as it was required to manually copy files from Mac (breaking the license). Ok then, lets make own SDK for RoboVM.
22 Jan 2018
|
debugger
fix
Fix PR #257
Wants find bugs in own product ? Start using it!
1. It was not possible to step over code if this code was generating exception (even if it was handling it)
These lines were not possible to step over as in exists()
there was exception generated/catch:
new File("/some/invalid/path").exists();
new File("/some/invalid/path").exists();
19 Jan 2018
|
debugger
fix
Fix PR #256
This happens when evaluating internal of native
object in debugger (NSDictionary in my case) and bound Java class for internal objects (NSDictionary$EntrySet in my case) was not loaded by Runtime. E.g. class resolution is happening by Debugger itself.
The bug’s symptoms are following: app hangs, and variable is not resolved in debugger:

In idea log it appears as exception:
18 Jan 2018
|
app-extensions
tutorial
Apple added support for app-extensions while ago (ios8). I’ve created today a PR255 that add ability to include pre-build app extension into RoboVM app. Answering the possible question:
Can I use RoboVM to develop appext
Short answer: no, not today
16 Jan 2018
|
target-framework
tutorial
There was a framework target in MobiVM/RoboVM for a while. But there was no any integration with Idea IDE and there was no template project available till PR253. Also this PR introduces framework support library binary that simplifies Framework development as all native code that is required to initialize VM is embedded into this library.
This Tutorial will explain what can be done with Framework target:
- Java functionality that can be wrapped into framework without writing any native support code;
- Comfortable API for Framework users – no need to use JNI/any other workarounds to use it;
What can’t be done:
15 Jan 2018
|
dirty hack
idea-plugin
gradle
There is old living bug that RoboVM doesn’t work nice in Android Studio 3.0
And it still doesn’t work nice, here few workarounds that will allow to start project.