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!

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/d188f572-ce82-4e7d-a9f8-8568a96d0b66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to