google / google/j2objc

The contents of JRE.xcframework (static vs dynamic lib)

Open
#2,282 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6k
Forks
999
Avg merge
19h 20m
Merged PRs (30d)
14

Description

Hello,

I have a question about the contents of the xcframework when produced by the build scripts. Typically an `xcframework` contains other `framework`s for individual architectures. However, the way the `JRE.xcframework` is produced is that it contains only binary objects (`libjre_emul.a` for each arch). What is the difference and why does j2objc do it in this particular way?

To my understanding it is creating static instead of dynamic libraries, however what is the reason to not compile into a dynamic lib?

![95f4b819620faa7075844b156440abbe354ab2d8-748x274](https://github.com/google/j2objc/assets/1455813/9412eca7-6641-4d1b-bf6c-97f6eb1d2728)

Screenshot 2024-01-05 at 16 35 00

Apologies if this is a too basic of a question.

Best regards,

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.