Not surprisingly, when I run an app built with both frameworks, I get warnings about duplicate classes for everything that's defined in libjre_emul.a. Eg.
Class AndroidOsSystemClock is implemented in both "framework1" and "framework2". One of the two will be used. Which one is undefined.
I could get rid of the errors by asking each organization to distribute their framework without embedding libjre_emul.a and then I could just include it once when building my app. But they're likely to eventually end up using different versions of j2objc to create their frameworks and then I might have two incompatible versions of libjre_emul.a to choose from.
I'm curious if anyone else has already encountered this situation and if so, how you dealt with it?
Thanks!
--
You received this message because you are subscribed to the Google Groups "j2objc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to j2objc-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Do you have any sense for how likely this is to be a problem? In other words when j2objc has been updated in the past are you mostly just adding more functionality to libjre_emul.a, or do you find that you also end up making incompatible changes to the functionality that's already in there?
I can try to encourage coordination so that both frameworks stay on the same version of j2objc, but if that doesn't work, I'm just trying to get a feeling for whether I'm worrying about nothing or if this is likely to end up a problem.
Thanks for all of your hard work -- j2objc is awesome!
I'm having a similar problem, but from the other side - I need to build the framework I distribute in such a way that it depends on but does not link to jre_emul. Cocoapods seems to be the way to go, but the most recent spec for j2objc in my podspec (just installed) is 0.9.6.1, the goodow/j2objc branch seems to be on 0.9.7, and the version I'm currently using is post-0.9.7.
Has anyone managed to build something using j2objc but without linking jre_emul, either with or without cocoapods?
An alternative (hilariously horrible hack) would be to prefix all the classes in the jre lib...since it's translated, I assume this is possible, but I cannot find where I'd specify the prefix mapping option for this - where would I put --prefixes for this?