Thread
#multiplatform
    hfhbd

    hfhbd

    8 months ago
    Does anybody know a workaround to create a fat framework on macOS? https://youtrack.jetbrains.com/issue/KT-47355
    val xcf = XCFramework()
    fun KotlinNativeTarget.config() {
        binaries {
            framework {
                baseName = "shared"
                export("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0")
                xcf.add(this)
            }
        }
    }
    iosArm64 { config() }
    iosSimulatorArm64 { config() }
    macosArm64 { config() }
    macosX64 { config() }
    iOS targets work without any problem, macOS fails with Fat frameworks are not supported for platform macos_arm64``
    Tushar Janefalkar

    Tushar Janefalkar

    5 months ago
    @hfhbd @Stefan Oltmann did either of you find a solution for this?
    hfhbd

    hfhbd

    5 months ago
    Nope...
    Stefan Oltmann

    Stefan Oltmann

    5 months ago
    Looks like they will leave that open for some time. In about 2 months I will have to deliver a first release and I thinking of providing separate setups for Intel and Apple Silicon - as we see it for some other apps, too.