Skip to content
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

SQLCipher Static Link seems to fail with some targets #1765

Open
insipx opened this issue Mar 18, 2025 · 0 comments
Open

SQLCipher Static Link seems to fail with some targets #1765

insipx opened this issue Mar 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@insipx
Copy link
Contributor

insipx commented Mar 18, 2025

Describe the bug

Troubleshooted sqlcipher a little bit here

using the pkg-config crate, tried to ensure sqlcipher library static link existed at runtime. it seems for some targets, sqlcipher won't compile, so won't be statically linked and instead falls back to linking dynamically with a system library.

Needs to be looked into more

One idea I had is to cross-compile for android/iOS with nix, this way we can ensure the SQLCipher library exists on the system and for the correct target at compile time, so that they may be bundled together.

Ultimately we need some way to ensure that when SQLCipher is bundled/vendored by the rust package manager (or really any other native library), it is being correctly included in xmtp-android/swift

Expected behavior

No response

Steps to reproduce the bug

No response

@insipx insipx added the bug Something isn't working label Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant