https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

Maurice Jouvet

01/23/2020, 8:40 AM
Quick question, I am building my KMP app with sqldelight and I saw on the documentation that we need to add -lsqlite3 for compilation. I put it but I have this error now : e: Invalid argument: -lsqlite3 Conf:
Copy code
configure(listOf(iosArm32, iosArm64, iosX64)) {
        compilations {
            val main by getting {
//                extraOpts("-Xobjc-generics -lsqlite3")
                kotlinOptions {
                    freeCompilerArgs = listOf("-Xobjc-generics", "-lsqlite3")
                }
            }
        }

        binaries.framework {
            export("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$coroutines_version")
            baseName = frameworkName
        }
    }
b

basher

01/23/2020, 2:47 PM
You don't need it, unless you enable a flag that says you want to link SQLite yourself
4 Views