Ghasem Shirdel
05/03/2025, 9:59 AMassembleComposeAppXCFramework
task. The goal was to upload the ComposeApp.xcframework.zip
to a storage service and then use it as a binaryTarget
in Package.swift
.
The problem is that the resources are not included inside the framework, and the app using the package crashes because of that.
A temporary workaround was to avoid using resources entirely and handle everything in Kotlin, or to manually provide Xcode with the path to the resources generated by Compose and add them to “Copy Bundle Resources.” But this effectively splits the library into two parts, which is not ideal.
In the Kotlin 2.2.0-Beta2 changelog, I saw this issue:
KT-75823 Resources bundle with XCFrameworks for iOS
https://youtrack.jetbrains.com/issue/KT-75823
However, the resource bundle still wasn't present in the root of the .xcframework
. Is this feature still under development?tapchicoma
05/05/2025, 8:54 AMKonstantin Tskhovrebov
05/06/2025, 9:26 AM