Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code generation not working on new kotlinArtifacts DSL Module #72

Open
DevSrSouza opened this issue Feb 15, 2023 · 0 comments
Open

Code generation not working on new kotlinArtifacts DSL Module #72

DevSrSouza opened this issue Feb 15, 2023 · 0 comments

Comments

@DevSrSouza
Copy link

DevSrSouza commented Feb 15, 2023

Our project does not use cocoapods, we consume KMM modules with XCFramework, the module that put all kotlin modules together for publishing does not have any dependency beside the implementation of kotlinArtifacts DSL.

plugins {
   kotlin("multiplatform")
    id("dev.icerock.moko.kswift") version "0.6.1"
}

kotlin {
    ios()
}

// New format https://kotlinlang.org/docs/multiplatform-native-artifacts.html#xcframeworks
kotlinArtifacts {
    Native.XCFramework("kmm") {
        targets(iosSimulatorArm64, iosArm64, iosX64)
        setModules(
            projects.X,
            projects.Y,
            projects.Z,
        )
    }
}

kswift {
    install(dev.icerock.moko.kswift.plugin.feature.SealedToSwiftEnumFeature)
}

When running :kmm:assembleKmmXCFramework no Swift files are generated from the sealed class from modules X Y Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant