Bailey Pollard
06/17/2021, 6:43 PMpod("StarIO", "~> 2.8.2")
And let me know if it succeeds for you?joshshin
06/17/2021, 9:04 PMtargets.withType<KotlinNativeTarget> {
binaries.withType<org.jetbrains.kotlin.gradle.plugin.mpp.Framework> {
isStatic = true
}
}
joshshin
06/17/2021, 9:08 PMCrashKiOS
Bailey Pollard
06/17/2021, 9:08 PMjoshshin
06/17/2021, 9:09 PMkotlin
block of the shared module's build.gradle.kt
filejoshshin
06/17/2021, 9:09 PMkotlin {
android()
// Revert to just ios() when gradle plugin can properly resolve it
val onPhone = System.getenv("SDK_NAME")?.startsWith("iphoneos") ?: false
if (onPhone) {
iosArm64("ios")
} else {
iosX64("ios")
}
targets.getByName<KotlinNativeTarget>("ios").compilations["main"].kotlinOptions.freeCompilerArgs +=
listOf("-Xobjc-generics", "-Xg0")
targets.withType<KotlinNativeTarget> {
binaries.withType<org.jetbrains.kotlin.gradle.plugin.mpp.Framework> {
isStatic = true
transitiveExport = true
}
}
Bailey Pollard
06/17/2021, 9:11 PMjoshshin
06/17/2021, 9:11 PMjoshshin
06/17/2021, 9:12 PMjoshshin
06/17/2021, 9:12 PMBailey Pollard
06/17/2021, 9:12 PMBailey Pollard
06/17/2021, 9:12 PMjoshshin
06/17/2021, 9:13 PMios.deploymentTarget = "{WHATEVER YOUR TARGET IS}"
to the cocoapod blockjoshshin
06/17/2021, 9:13 PMBailey Pollard
06/17/2021, 9:13 PMjoshshin
06/17/2021, 9:14 PMBailey Pollard
06/17/2021, 9:15 PMBailey Pollard
06/17/2021, 9:15 PMjoshshin
06/17/2021, 9:16 PMBailey Pollard
06/17/2021, 9:16 PMBailey Pollard
06/17/2021, 9:16 PMBailey Pollard
06/17/2021, 9:16 PMjoshshin
06/17/2021, 9:17 PMBailey Pollard
06/17/2021, 9:17 PMBailey Pollard
06/17/2021, 9:17 PMjoshshin
06/17/2021, 9:18 PMpod install
againBailey Pollard
06/17/2021, 9:19 PMjoshshin
06/17/2021, 9:20 PMBailey Pollard
06/17/2021, 9:20 PM