Skip to content

How to configure for compose multiplatform nativeMain? #145

Answered by yshrsmz
ronjunevaldoz asked this question in Q&A
Discussion options

You must be logged in to vote

In the meantime, you can call applyDefaultHierarchyTemplate(), and that should solve the problem.

kotlin {
    // ... other config
    listOf(
        iosX64(),
        iosArm64(),
        iosSimulatorArm64()
    ).forEach { iosTarget ->
        iosTarget.binaries.framework {
            baseName = "ComposeApp"
            isStatic = true
        }
    }

    applyDefaultHierarchyTemplate()

    // ... and more config
}

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@ronjunevaldoz
Comment options

@yshrsmz
Comment options

@yshrsmz
Comment options

@yshrsmz
Comment options

Answer selected by ronjunevaldoz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #144 on April 23, 2024 09:31.