hey there, I have 2 mpp modules A and B. B is usin...
# kotlin-native
c
hey there, I have 2 mpp modules A and B. B is using A as a dependency. I produced FAT frameworks from both of them, and include both framework in my iOS app. Everything is good so far. The problem is I have a type in module A Type1 which is used in module 2. But in my ios App if I try to use them together I have an incompatibility error where A.Type1 is said to be incompatible with B.Type1. Whereas they are supposed to be the exactly the same. How can I solve that?
r
Generally you need to use klibs for intermediate dependencies and then produce a single framework containing everything.
c
Fair enough, I shall try that
I assume that using
transitiveExport=true
would do the trick:
Copy code
iosArm32("ios32") {
        binaries {
            framework(){
                transitiveExport=true
            }
        }
    }
But I still don’t see my mpp dependency in the resulting framework
Oh I yeah I forgot to add :
export project(":prj")
Now both of my modules symbols are present in the resulting framework. Just for reference:
Copy code
iosArm32("ios32") {
        binaries {
            framework(){
                export project(":prj")
                transitiveExport=true
            }
        }
    }
👍 2