Hey everyone having a bit of an issue with importi...
# multiplatform
g
Hey everyone having a bit of an issue with importing multiple shared modules into the iOS part of the app I have 3 kmm modules so far
core
,
home
and
settings
I’ve followed the guide of importing modules here https://kotlinlang.org/docs/multiplatform-mobile-integrate-in-existing-app.html but whatever I tried, I can’t access a second module in iOS. I don’t want to use cocoapods I can only use the
core
module now. when I try to import the
home
module Im getting
No such module 'home'
I found the resources online very scarce so I hope someone here can help Thanks!
p
Not sure if I fully understand your problem but what I normally do is I have only one iosAppKt module that includes the rest of the dependencies. This module basically only offers bindings to the different libraries.
The other alternative is one framework per library and include them in xcode independently
g
My goal is to have multiple shared modules. One for every feature. They need to be visible in the iOS app
p
I see, yeah the single bindings framework won't work for you
g
Hmm.. what does it mean and what can I do about it?
p
What I mean is that my solution doesn't fit your needs. But it doesn't mean you cannot achieve what you want. Just out of curiosity, are you manually importing the frameworks into xcode or using some sort of dependency manager like cocoa or spm?
g
Manually
k
All kotlin modules should be merged together to single umbrella framework. There are technical limitations, which force to do so
g
Do you mean something like this can work?