From a99a2015f3d77448f3bdd2ee1dba64517a216d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20Pr=C3=BCnster?= Date: Sun, 16 Jun 2024 16:10:45 +0200 Subject: [PATCH] fix XCFramework publishing --- build.gradle.kts | 42 +++++++----------------------------------- 1 file changed, 7 insertions(+), 35 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 42d879e..d879e3d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -73,50 +73,22 @@ tasks.withType() { kotlin { val xcf = org.jetbrains.kotlin.gradle.plugin.mpp.apple.XCFrameworkConfig(project, "KmmResult") - macosArm64 { - binaries.framework { - baseName = "KmmResult" - embedBitcode("bitcode") - xcf.add(this) - } - } - macosX64 { - binaries.framework { - baseName = "KmmResult" - embedBitcode("bitcode") - xcf.add(this) - } - } - tvosArm64 { - binaries.framework { - baseName = "KmmResult" - embedBitcode("bitcode") - xcf.add(this) - } - } - tvosX64 { - binaries.framework { - baseName = "KmmResult" - embedBitcode("bitcode") - xcf.add(this) - } - } - tvosSimulatorArm64() { - binaries.framework { - baseName = "KmmResult" - embedBitcode("bitcode") - xcf.add(this) - } - } listOf( + macosArm64(), + macosX64(), + tvosArm64(), + tvosX64(), + tvosSimulatorArm64(), iosX64(), iosArm64(), iosSimulatorArm64() ).forEach { it.binaries.framework { baseName = "KmmResult" + binaryOption("bundleId", "at.asitplus.KmmResult") embedBitcode("bitcode") xcf.add(this) + isStatic = true } }