Replies: 1 comment
|
Sorry, I missed this in my inbox. Was this working without the native interface code? Which version of xcode are you using? Can you provide the native stack or additional information from the xcode console? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am doing a local xcode iOS Project build. Newest version of codename one.
I'm adding a NativeInterface called ControllerNative to my Codename One project. Right now I'm only trying to get a minimal case working on iOS: a single isSupported() method that returns true, called from Java like this:
This same code works correctly in the Java SE build in Codename One (returns supported, no issues).
On the iOS build, the app installs and opens on my physical device, but the UI is completely unresponsive. There is no crash, no error dialog, just a hang. Xcode shows the last thread activity as:
"Application violated contract by causing UIApplicationMain() to return. This incident will be reported."I wrote my own .h/.mm implementation in /ios/src/main/objectivec (class com_mycompany_serviceapp_ControllerNativeImpl). Which compiled okay, but now I'm stuck at this hang.
In the device console, I also see:
[CN1] Failed to find native interface class com_mycompany_serviceapp_ControllerNativeImpl. Tried: (...)Questions:
What is the correct flow for ios implementations? Is there something I am missing or doing wrong?
Why am I seeing this hang in the UI on my device?
All reactions