-
Notifications
You must be signed in to change notification settings - Fork 637
Native libs for iOS aarch64/x86_64 #745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
to make the builds reproducible and updatable to future versions, this project tries to always build the native libs using Docker containers with cross-compilation (https://github.com/dockcross/dockcross). The exception is M1 macs, which are compiled by Xerial directly (since there is no cross-compilation containers for that yet). |
@philip-han I'm not familiar with ios, what does it run exactly in terms of cpu architecture and OS? Do you have logs from the graalvm execution? |
@gotson I get this error message from xerial when running on iOS simulator on Intel Mac "No native library found for os.name=iOS, os.arch=x86_64" I believe this error is coming from OSInfo.java. On real iPhone, os.arch would be aarch64. My code works when I'm targeting Mac desktop since Mac native libs are included. Also, xerial 3.7.2 pure java mode works too on iOS but I don't want to use such outdated version. |
iOS cannot run mac binaries, hence my request for iOS/x86_64 and iOS/aarch64 native libs. I'm going to research if I can cross compile iOS libs on my Mac at some time. iOS sdk does provide sqlite libs in it's own format which contains both aarch64 and x86_64, going to see if that could be used here. |
what format is that ? |
iOS sdk distributes .tdb files which turns out to be just a stub file in yaml format. Ultimately, it resolves to .dylib file which is standard. It loaded but results in unsatisfied link error in NativeDB.java
|
I've tried latest release on iOS using GraalVM but it crashes because iOS native libs are not included.
A simple insert worked with the last pure Java version but I doubt that it will work much beyond that.
Is it possible to to build native iOS native libs using Intel Mac? I could give it a try if someone could give me some pointers.
The text was updated successfully, but these errors were encountered: