s

    Shervin

    3 months ago
    Hey everyone! I have a question about multi-module structure in kotlin-multiplatform. I have a few kotlin modules which I am adding to my
    shared
    module as “api”, how ever I’m not able to access them from Xcode. I am adding
    kotlin("multiplatform")
    and also:
    kotlin {
        jvm()
        iosX64()
        ios() 
    }
    to the target module which I want to have access from Xcode. I can verify that the
    shared
    module can be imported in Xcode, but not the modules that it depends on. Any idea what might be the issue? Thanks in advance
    m

    mkrussel

    3 months ago
    You need to
    export
    them in the framework. If you don't then only the symbols used in the public API of the shared module gets included.
    binaries.framework("Shared") {
       export(project(":dep1")
       export(project(":dep2")
    }
    s

    Shervin

    3 months ago
    @mkrussel thank you. I will try this tonight.
    Big thanks! solved my issue