Hi, I wanted to build an SDK using SPM, so I used ...
# multiplatform
g
Hi, I wanted to build an SDK using SPM, so I used the
assembleComposeAppXCFramework
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?
t
Support for it should be also added on the Compose side fyi @Konstantin Tskhovrebov
k