Elyes Ben Salah
07/10/2021, 6:38 PMJohn O'Reilly
07/10/2021, 7:28 PMElyes Ben Salah
07/10/2021, 7:39 PMAbhishek Dewan
07/11/2021, 12:10 AMElyes Ben Salah
07/11/2021, 9:25 AMJohn O'Reilly
07/11/2021, 9:26 AMAdarsh Gumashta
07/11/2021, 9:27 AMJohn O'Reilly
07/11/2021, 9:27 AMElyes Ben Salah
07/12/2021, 9:34 AMkpgalligan
07/12/2021, 3:13 PMios()
vs iosX64()
(or similar), that may be what's happening here. "work in XCode" you mean you can run it from XCode? I haven't been building with the KMM plugin as much, so does it not run if it can't resolve everything in the IDE?Elyes Ben Salah
07/12/2021, 3:18 PMkotlin {
//android()
val isDevice = System.getenv("SDK_NAME")?.startsWith("iphoneos") == true
if (isDevice)
iosArm64("ios")
else
iosX64("ios")
targets.getByName<KotlinNativeTarget>("ios").compilations.forEach {
it.kotlinOptions.freeCompilerArgs += arrayOf("-linker-options", "-lsqlite3")
}
cocoapods {
summary = "Some description for the Shared Module"
homepage = "Link to the Shared Module homepage"
ios.deploymentTarget = "14.1"
frameworkName = "shared"
podfile = project.file("../iosApp/Podfile")
}
kpgalligan
07/12/2021, 3:19 PMElyes Ben Salah
07/12/2021, 3:20 PMtargets.getByName<KotlinNativeTarget>("ios").compilations.forEach {
it.kotlinOptions.freeCompilerArgs += arrayOf("-linker-options", "-lsqlite3")
}
kpgalligan
07/12/2021, 3:21 PMElyes Ben Salah
07/12/2021, 3:22 PM