Damiano Giusti
09/13/2022, 1:30 PMsqlcipher_export
at runtime?
I’m constantly getting this error when running the iOS app that includes the kmp framework:
no such function: sqlcipher_export in "SELECT sqlcipher_export('plaintext');"
any ideas? thanks!Damiano Giusti
09/13/2022, 2:08 PMkpgalligan
09/13/2022, 3:43 PMkpgalligan
09/13/2022, 3:44 PM-lsqlite3
is not in the “Other Linker Flags”Damiano Giusti
09/13/2022, 3:51 PMsqldelight {
database("<redacted>") {
packageName = "<redacted>"
linkSqlite = false
}
}
and in the Xcode project there isn’t -lsqlite3
in “Other Linker Flags”.
Since the project is using Carthage to import KMP modules, I’m replacing directly the .framework file to test the KMP module. We’re not including it using cocoapods, but we are using cocoapods to add sqlcipher into the multiplatform project to avoid all the cinterop configurationkpgalligan
09/13/2022, 8:43 PMDamiano Giusti
09/13/2022, 10:37 PMkpgalligan
09/13/2022, 11:06 PMsqlcipher_export
, but the sqlite calls otherwise run, that suggests the sqlite library is still being linked somehow even though you don’t see it in the other linker args, which you’ll (probably) need to resolve to make sure when you add SQLCipher that the SQLCipher binary and the built-in sqlite library don’t conflict.Damiano Giusti
09/14/2022, 7:34 AMthat suggests the sqlite library is still being linked somehow even though you don’t see it in the other linker args,can it be due to the usage of SQLDelight in other kmp modules without the linkSqlite flag specified? such modules are added to the xcode project with Carthage as well
kpgalligan
09/14/2022, 12:22 PMDamiano Giusti
09/14/2022, 12:25 PMDamiano Giusti
09/15/2022, 1:35 PMDETACH DATABASE encryptedDb
, did you encounter something similar?