Does anyone know if 1.3.7 supports multiple static...
# multiplatform
k
Does anyone know if 1.3.7 supports multiple static K/N frameworks? The release notes mention support for more than one dynamic framework, which I’ve tested and works, but I tried with static frameworks and am getting the
duplicate symbols for architecture
error since there are two versions of things like
Kotlin.Any
k
i have used multiple static frameworks and did not have an issue
you have set the frameworks to do not embed, correct?
k
Right, they’re set to Do Not Embed
Is there a special gradle property I have to set for them to work together? I’ve set baseName and isStatic currently
k
no
k
I think my xcode project was configured incorrectly, Now I have both in and it builds correctly, but it crashes with an error of
runtime assert: runtime injected twice
k
clean build and all that?
k
Yea, the project is clean, just referencing the two static frameworks. There are a lot of warnings about duplicate symbols, but not errors.
s
Multiple debug static frameworks are not supported in 1.3.70: https://github.com/JetBrains/kotlin-native/issues/2423#issuecomment-591504566 Should work in 1.4, but may require disabling caches (
kotlin.native.cacheKind=none
Gradle project property).
k
ah, my frameworks are release
k
Ah that’s ok, yea release working for me as well. Thanks @svyatoslav.scherbina!
👍 1