Unused methods are erased from iOS builds leaving just an empty return statement. This makes developing native extensions for iOS a little tricky, here's the process I'm using similar to something I've read from Steve I think in the past.
1. Make the native interface and generate native code
2. Send an iOS build including source.
3. Open the source in xcode and implement the Objective-C code
4. Run and test from xcode
5. Copy the working implementation back to that native/ios directory in the Codename One project
6. Build via Codename One as normal.
Problem is with callbacks - if the callbacks aren't used (because the implementation isn't there) then they are reduced to empty return statements and therefore step 4 can't be completed in xcode.
I've also had an issue in the past where a method that WAS used in the native code was optimized a way and in this case there is no way to get it back. Could this feature be optional, or just apply to release builds, or not apply to 'include source' builds or something to make this process easier.
Thanks!