Is anyone able to attempt to import the pod: ```po...
# multiplatform
b
Is anyone able to attempt to import the pod:
Copy code
pod("StarIO", "~> 2.8.2")
And let me know if it succeeds for you?
j
i was only able to import pods by setting the framework to static.
Copy code
targets.withType<KotlinNativeTarget> {
        binaries.withType<org.jetbrains.kotlin.gradle.plugin.mpp.Framework> {
            isStatic = true
        }
    }
but somehow this is breaking something with my error reporting to crashlyitcs with
CrashKiOS
b
Josh, where did you put that code?
j
inside the
kotlin
block of the shared module's
build.gradle.kt
file
Copy code
kotlin {
    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
        }
    }
b
Are you able to import it in iosMain?
j
yeah
i imported firebase this way
it was awesome until i realized it broke error reporting for me
b
I c/p that code you sent and it didn't work 😞
Still saying StarIO not found
j
also try adding
ios.deploymentTarget = "{WHATEVER YOUR TARGET IS}"
to the cocoapod block
for some reason it didn't work until i added that
b
What number did you use?
j
"13.0". that's the min version of my app
b
Praying that this works
🤞 1
been at this for 3 days
j
i feel your pain. same. i just got things to work yesterday
b
Is this a sample project you're using?
or production
Still 😞
j
prod. but like i said, this has somehow broken error reporting for us, so probably won't continue down this path
b
How does this gradle file look?
j
looks fine to me. also try deleting the pods and doing
pod install
again
b
Do you build from iOS?
j
yeah
b
Damn, still not working