Hello,
I managed to include a native lib into my KMM project and managed to generate the .klib file for both iosX64 and iosArm64 sourceSet. Though I cannot import my package from the iosMain module, it seems that I can if I create the iosX64 module and import it from a file there. But that's not what I want I want to import the package from the iosMain module. Any thoughs? Thanks!
r
russhwolf
08/29/2023, 5:41 PM
Try adding
kotlin.mpp.enableCInteropCommonization=true
to gradle.properties. By default Kotlin/Native doesn't run commonizer on third-party libraries, which means they're only available from leaf source-sets and not shared ones.