Releases: NullIsOne/j2objc
Releases · NullIsOne/j2objc
Latest build
Built with J2OBJC_ARCHS="iphone64 simulator simulator64" make -j8 frameworks
Full contains all frameworks
Light contains only JRE
Universal xcframeworks for simulator
Based on official 2.8.
- migrate to python3, because python2 was deleted from macos bin folder
- fixed several build errors
- added architecture wrapper script to make fat
.awithx86_64andarm64for simulator
Usage.
- Switch
JAVA_HOMEto Java 11 - Make dist and frameworks as usual
J2OBJC_ARCHS="iphone64 simulator64" make -j8 frameworks - Patch lib like
sh scripts/prepare_arm64_simulator.sh jre_emul JRE jre_emul - Copy
Info.plist,ios-arm64andios-arm64_x86_64-simulatorintoxcframeworkinsidedist/frameworks - Enjoy you patched
distand link to your project
Note: script is not universal. If you need more architectures then you should update it to not broke Info.plist inside original xcframework
UPD: after experiments in real project I found that extraction of .o files and repacking them is not enough.
I made Universal-JRE-arm64-x86 manually from sources stored in **/build_result/objs-iphone64/ and it worked.
It seems, that I need rewrite script and avoid using ar, since we have all sources prepared in appropriate folder.