I try multi module in my KMP project, I do that: `...
# multiplatform
m
I try multi module in my KMP project, I do that:
Copy code
listOf(
    iosX64(),
    iosArm64(),
    iosSimulatorArm64()
).forEach {
    it.binaries.framework {
        baseName = "sdk"
        isStatic = true
    }
}

sourceSets {
        val commonMain by getting {
            dependencies {
                implementation(libs.serialization.json)
                implementation(libs.bundles.ktor)
                implementation(libs.koin.core)
                api(libs.viewmodel)
                implementation(libs.datetime)
                api(project(":kmp:ui:designSystem"))
            }
        }
        val commonTest by getting {
            dependencies {
                implementation("io.ktor:ktor-client-core:2.3.0")
            }
        }
        val androidMain by getting {
            dependencies{
                implementation(libs.ktor.android)
                api(libs.androidx.lifecycle.viewmodel.ktx)
            }
        }
        val androidUnitTest by getting
        val iosX64Main by getting
        val iosArm64Main by getting
        val iosSimulatorArm64Main by getting
        val iosMain by creating {
            dependsOn(commonMain)
            iosX64Main.dependsOn(this)
            iosArm64Main.dependsOn(this)
            iosSimulatorArm64Main.dependsOn(this)
            dependencies {
                implementation(libs.ktor.ios)
            }
        }
        val iosX64Test by getting
        val iosArm64Test by getting
        val iosSimulatorArm64Test by getting
        val iosTest by creating {
            dependsOn(commonTest)
            iosX64Test.dependsOn(this)
            iosArm64Test.dependsOn(this)
            iosSimulatorArm64Test.dependsOn(this)
        }
    }
In Android part everything is good. But in iOS, I can import sdk, but it doesn't found the desisgnSystem. I tried
*import* sdk.designSystem
or
*import* designSystem
but nothin work.
a
You can check my post on medium on how to configure the Gradle files
a
The base name of your framework is sdk, i would imagine your import statement is actually just
Copy code
import sdk
☝️ 1