aherbel
12/30/2025, 10:52 PMiosMain/swift source set using the Swift Code Bundling feature from SKIE. The Swift code gets detected by SKIE (it is being included in the shared/build/skie/compilation/iosSimulatorArm64/main/swift/bundled folder), so apparently Swift Code Bundling is working. Buut, for some reason it seems that code is not being exposed because when I go to my iosApp I can only see the generated Swift code from Kotlin code, but nothing from the Swift files in my iosMain/swift folder.
Any ideas? I can share more details on the setup I'm trying or any other information you think would be usefulTadeas Kriz
12/30/2025, 10:53 PMpublic visibility?aherbel
12/30/2025, 10:56 PMExtensionsKt class, which is wrong, because I have an Extensions.swift file declared for that extensionTadeas Kriz
12/30/2025, 10:57 PMaherbel
12/30/2025, 10:59 PMshared module)... I have a composeApp module that I use as a demo module for the functionality in the shared module, and the iosApp that consumes the composeApp generated XCFramework... the composeApp has an api(project(":shared")) dependency declaration in it and it also export that same shared dependency in the generated frameworkaherbel
12/30/2025, 11:01 PMlistOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach { iosTarget ->
iosTarget.binaries.framework {
baseName = "ComposeApp"
isStatic = false
export(project(":shared"))
}
}Tadeas Kriz
12/30/2025, 11:04 PMTadeas Kriz
12/30/2025, 11:04 PMaherbel
12/30/2025, 11:10 PMiosApp ->`composeApp` ->`shared`
it's a transitive dependency...
iosApp consumes the artifact generated by composeApp , which consumes the shared module. The default structure of any KMP/CMP repo that uses the composeApp as a demo app of the shared module
I am trying to make a native wrapper for some Compose Multiplatform code I have... so I thought that I could use Swift Code Bundling for that. Ideally, the shared module should produce a distributable XCFramework to be consumed by a native iOS app. Sooo, I thought of using the iosApp as a client of the artifact generated by the shared module, buut that code is actually being consumed by the composeApp and the composeApp module is generating the final XCFramework consumed by the iosAppTadeas Kriz
12/30/2025, 11:11 PMshared and composeApp?aherbel
12/30/2025, 11:12 PMshared moduleTadeas Kriz
12/30/2025, 11:12 PMaherbel
12/30/2025, 11:13 PMcomposeApp too? or just applying the plugin do the trick?Tadeas Kriz
12/30/2025, 11:14 PMaherbel
12/30/2025, 11:15 PMskie {
swiftBundling {
enabled = true|false
}
}aherbel
12/30/2025, 11:15 PMTadeas Kriz
12/30/2025, 11:15 PMaherbel
12/30/2025, 11:16 PMaherbel
12/30/2025, 11:29 PMaherbel
12/30/2025, 11:32 PMTadeas Kriz
12/30/2025, 11:35 PM__SomeEnum name (two underscores)Tadeas Kriz
12/30/2025, 11:35 PMtoKotlinEnum() on the Swift enum and toSwiftEnum() on the Kotlin one to convert between themaherbel
12/31/2025, 1:00 AMaherbel
12/31/2025, 1:36 AMTadeas Kriz
12/31/2025, 2:17 AMaherbel
12/31/2025, 11:58 AM