I've generated an Obj-C framework from a Kotlin mu...
# kotlin-native
j
I've generated an Obj-C framework from a Kotlin multiplatform module and am using it in an iOS app via Swift. If I wanted to convert the Swift code in that module to Kotlin, would it be a case of linking that framework using cinterop?
s
You would need to use the klib output of your Multiplatform module instead of the framework. Kotlin Native doesn’t support multiple Kotlin frameworks in a single app. I’m not sure what the limitation is or if it will ever be lifted. For now, it is necessary to bundle multiple klibs into a single framework for your app to link against.
j
Thanks for the helpful pointer! I'll read a bit more into the docs on klibs.