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
Sam
11/27/2018, 8:15 PM
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
Jamie Lynch
11/27/2018, 9:13 PM
Thanks for the helpful pointer! I'll read a bit more into the docs on klibs.