I'm using compose multiplatform and I'm trying to ...
# multiplatform
b
I'm using compose multiplatform and I'm trying to figure out how to embed the
compose-resources
into a generated
xcframework
for distribution. Does anyone have any ideas on how that's done?
b
Ran into the same. Doing this for a client for now https://github.com/BotStacks/mobile-sdk/blob/main/sdk/build.gradle.kts#L245
👀 1
Oh heh it’s private
Sec
Copy code
tasks.named("podPublishReleaseXCFramework") {
    doLast {
        copy {
            from(project.file("src/commonMain/composeResources"))
            into(project.file("../pod/release/build/compose/ios/BotStacksSDK/compose-resources"))
        }
    }
}
Basically copy the directory into what’s defined in podspec
b
Are you distributing via cocoapods?
b
Will be soon using KMM bridge
The xcframework that the Kotlin plugin builds is only for local development
Podspec tells pod where to pull from when it builds it. This works for local development so in theory should be sufficient with pod trunk push too
b
I see