Multiple kotlin-native libraries single Multi-Platform & XCode project


#1

I have multiple kotlin native libraries that I am attempting to share between projects. When the multi-platform projects generate the .framework for consumption in XCode, both frameworks include duplicate entries for the Kotlin base classes, which of course causes issues with duplicate implementations in both frameworks. What is the way to properly link the different modules so that they appear either as a single framework or they properly expose all the functions of both to XCode?

Project setup

Base
|
| -> android_module (depends on mppB)
| -> mppA
| -> mppB (depends on mppA)
| -> xcode project (depends on mppB)

If only mppB is linked in XCode, then the public methods for mppA are not exposed.

If both mppB and mppA are linked then duplicate implementations are imported.