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

Generate KSP Dependency Classes for iOSMain Module inside a Kotlin Multiplatform project #1974

Open
TheArchitect123 opened this issue Jun 18, 2024 · 0 comments

Comments

@TheArchitect123
Copy link

TheArchitect123 commented Jun 18, 2024

I'm currently building a Kotlin Multiplatform project. Is there any way currently to generate classes with KSP into the iOSMain folder, instead of specific target folders?

I'm currently using Koin with KSP to generate a dependency graph for my project. It works fine for Android, however since the modules are generated at the architecture target folders, there's no way to run initialisation at the iOSMain, without having to write this on Swift.

 with("io.insert-koin:koin-ksp-compiler:1.3.0") {
        add("kspCommonMainMetadata", this)
        add("kspAndroid", this)
        add("kspIosArm64", this)
        add("kspIosSimulatorArm64", this)
        add("kspIosX64", this)
    }

I found a similar issue here
#929

Does anyone know a workaround for this? It's been over 2 years now and Google still hasn't provided a solution.

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