Skip to content

Conversation

@marcprux
Copy link
Member

@marcprux marcprux commented Sep 9, 2025

This should work in theory in a full Android Zygote app, where sqlite is always loaded in-process in order to support various parts of the Android SDK. But it won't work in a stand-alone Swift executable (e.g., in testing) because they are not linked to the SQLite binary.

Also, there seems to be issue with resolving RTLD_DEFAULT through the Swift Android library, so we would need to figure out how to search all the locally-loaded symbols.

@cla-bot cla-bot bot added the cla-signed label Sep 9, 2025
@marcprux
Copy link
Member Author

marcprux commented Sep 10, 2025

This isn't working in practice; dlsym() isn't able to load any functions, even in a full app. This is odd, since it is in theory the exact same thing as the JNA library is doing, just from a native Swift side. More investigation is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants