Ivan Carracedo Asensio
01/10/2024, 4:29 PMNative.XCFramework("KmpShared") {
targets(iosX64, iosArm64, iosSimulatorArm64)
modes(RELEASE)
setModules(
project(":commonModule"),
)
}
In the previous way we could do this:
val xcf = XCFramework()
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach {
it.binaries.framework {
export(//HERE THE DEPENDENCY TO EXPORT)
baseName = "getFixSharedLibraryXCF"
xcf.add(this)
}
}
Do they get exported by default(I guess not) with the new way? Has anyone tried yet?
Maybe I've to do this in every iOS target?:
macosX64().binaries {
framework {
export(project(":dependency"))
export("org.example:exported-library:1.0")
}
}
Thanks!
PD: The experimental way: https://kotlinlang.org/docs/multiplatform-native-artifacts.html