Marc Reichelt
10/28/2021, 9:29 AMcreateXCFramework
task, which is different from the assembleMyModuleReleaseXCFramework
task that the official Kotlin tooling provides, but does not support the arm64-simulator slice at the moment.
I’m kind of tempted to write some custom Gradle tooling already, because creating the swiftpackage is basically: creating the xcframework (which assembleMyModuleReleaseXCFramework
already does), creating a simple Package.swift
file, and zipping that.
Thanks a lot for helping! 👏Grégory Lureau
10/28/2021, 9:48 AMcopy {
from("$projectDir/src/iosMain/Package.swift")
into(...)
filter {
it.replace("%BINARY_URL%", remoteBinaryUrl)
.replace("%BINARY_CHECKSUM%", checksum)
}
}
tasks.register<Zip>("zipXCFramework") {
from(tasks.findByName("assembleMyModuleReleaseXCFramework"))
into("MyModule.xcframework")
}
Marc Reichelt
10/28/2021, 11:51 AMephemient
10/28/2021, 6:30 PMkavi
10/29/2021, 2:27 PM