https://kotlinlang.org logo
h

hfhbd

01/13/2022, 1:24 PM
Does anybody know a workaround to create a fat framework on macOS? https://youtrack.jetbrains.com/issue/KT-47355
Copy code
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``
2
t

Tushar Janefalkar

04/15/2022, 4:41 PM
@hfhbd @Stefan Oltmann did either of you find a solution for this?
h

hfhbd

04/16/2022, 8:09 AM
Nope...
s

Stefan Oltmann

04/19/2022, 6:37 AM
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.
2 Views