I have a kotlin kmm module MyKit Inside MyKit i ha...
# multiplatform
v
I have a kotlin kmm module MyKit Inside MyKit i have sub module: BaseKit. I'm trying to build xcframework that exports BaseKit. I have in my MyKit build.gradle.kts:
Copy code
val xcf = XCFramework()
listOf(
    iosX64(),
    iosArm64(),
    iosSimulatorArm64()
).forEach {
    it.binaries.framework {
        isStatic = false
        baseName = "MyKit"
        xcf.add(this)
        export(project(":mykit:BaseKit"))
    }
}

sourceSets {
    val commonMain by getting {
        dependencies {
            api(project(mapOf("path" to ":mykit:BaseKit")))
        }
    }
    val commonTest by getting {
        dependencies {
            implementation(kotlin("test"))
        }
    }
}
But that generates a bunch of weird errors: Cannot change dependencies of dependency configuration 'mykitBaseKit:commonMainApi' after it has been included in dependency resolution