JsonUtilities and PlatformUtilities are KMP librar...
# kotlin-native
s
JsonUtilities and PlatformUtilities are KMP libraries, they can export to xcframework.
Copy code
commonMain.dependencies {
            implementation(libs.kotlinx.serialization.json)
            implementation(libs.kotlinx.coroutines.core)
            api(project(":JsonUtilities"))
            api(project(":PlatformUtilities"))
        }
Is it possible in the xcframework exported by this project (the one using these two dependencies) to not embed them ? So the final xcframework would depend on these two xcframework ? my conf right now is this
Copy code
val xcf = XCFramework("MyLibrary")
listOf(
    iosArm64(),
    iosSimulatorArm64()
).forEach { target ->
    target.binaries.framework {
        baseName = "MyLibrary"
        isStatic = true
        compilerOptions {
            freeCompilerArgs.add("-Xexpect-actual-classes")
        }
        optimized = true

        export(project(":JsonUtilities"))
        export(project(":PlatformUtilities"))
        xcf.add(this)
    }
}
Is it also possible to make kotlin itself in a xcframework to avoid conflict and inconpatible type ? Ty
Seem like adding the same dependency but with compileOnly(project("...")) will make it not linked