You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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