Michael Paus
01/31/2024, 9:40 AMld: Undefined symbols:
_sqlite3_bind_blob, referenced from:
_co_touchlab_sqliter_sqlite3_sqlite3_bind_blob_wrapper69 in composeApp[4](libco.touchlab:sqliter-driver-cinterop-sqlite3-cache.a.o)
_sqlite3_bind_double, referenced from:
_co_touchlab_sqliter_sqlite3_sqlite3_bind_double_wrapper71 in composeApp[4](libco.touchlab:sqliter-driver-cinterop-sqlite3-cache.a.o)
_sqlite3_bind_int64, referenced from:
_co_touchlab_sqliter_sqlite3_sqlite3_bind_int64_wrapper73 in composeApp[4](libco.touchlab:sqliter-driver-cinterop-sqlite3-cache.a.o)
_sqlite3_bind_null, referenced from:
_co_touchlab_sqliter_sqlite3_sqlite3_bind_null_wrapper74 in composeApp[4](libco.touchlab:sqliter-driver-cinterop-sqlite3-cache.a.o)
...
Does anyone know what might be going wrong here? I am not using any of the touchlab tools directly. These dependencies seem to be pulled in by SQLDelight for example.
I do this on an X86 Mac in case it should matter.Daniel Seither
01/31/2024, 9:47 AMkotlin {
[…]
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.all {
linkerOpts.add("-lsqlite3")
}
}
}
Michael Paus
01/31/2024, 9:59 AMlistOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach { iosTarget ->
iosTarget.binaries.framework {
baseName = "ComposeApp"
isStatic = true
}
iosTarget.binaries.all {
linkerOpts.add("-lsqlite3")
}
}
to the already existing forEach
in my build.gradle.kts file but it does not make any difference.Daniel Seither
01/31/2024, 10:15 AMMichael Paus
02/02/2024, 9:22 AM