Hi All, I am working with Kotlin Multiplatform Mob...
# multiplatform
s
Hi All, I am working with Kotlin Multiplatform Mobile (KMM), and I’ve structured your libraries (
sharedC
,
sharedP
,
sharedI
) in such a way that
sharedC
implements an interface defined in
sharedI
, and
sharedP
uses the interface of
sharedC
as a type. However, I am facing a type-casting issue when trying to pass objects from
sharedC
to
sharedP
in your Xcode project. Can any one help me.
m
If you are generating separate frameworks for
sharedC
,
sharedP
, and
sharedI
then each gets its own copy of all the classes and interfaces shared. Only primitives and functions are shared. I cannot find the documentation for this right now, but the solution is you need to create an umbrella module that builds all three modules into a single framework.