I'm in an odd situation at the moment where we have an established mobile code base that we are trying to integrate some native extensions into. The code base is made up of several "Flex Library Projects" that are used to compile the main application through Flash Builder 4.6.
We need to use the native extension functionality within one of the included libraries but we keep getting errors of missing classes during the final release build compilation.
Error occurred while packaging the application:
Exception in thread "main" java.lang.Error: Unable to find named traits: ***
The missing class is a class contained in the Actionscript side of the extension.
We've tried several methods of referencing the extensions:
- adding like swc's in the library build path
- renaming the ane's to swc's and including in build paths
- tried linking as external resources
Most of these seem to work, and we can even get a debug build working, but once we package for the iOS release we get the above error.
This is not an iOS Framework issue as the class is an Actionscript class contained in the ANE.