Hello, is it possible to use two Kotlin/Native fra...
# kotlin-native
r
Hello, is it possible to use two Kotlin/Native frameworks in a single iOS application?
j
Since 1.3.70 the answer is yes. See the release blogpost: https://blog.jetbrains.com/kotlin/2020/03/kotlin-1-3-70-released/#kotlin-native
r
Thanks!
k
You can, but you cannot pass objects between them. They are entirely their own separate worlds: https://dev.to/touchlab/multiple-kotlin-frameworks-in-an-application-34e9
r
Thanks Kevin!
j
if anyone is interested, looks like the issue was that the
export
in the regular
ios.binaries.framework
doesnt seem to be taken into account when using the cocoapod plugin. It does work however when declared like this:
Copy code
targets.withType<KotlinNativeTarget> {
        binaries.withType<Framework> {
            transitiveExport = true
            export(project(":core-lib"))
        }
    }
👍 3
🙏 1
💯 1