I’m working on Kotlin/Native module with inntegration it with iOS Xcode project.
I saw next statement in the documentation “To correctly import the dependencies into the Kotlin/Native module, the Podfile must contain either use_modular_headers! or use_frameworks! directive.”
I don’t understand how the Podfile configuration of building dependencies are affecting the import of specific Pods in the Kotlin/Native module.
Could somebody explain me please?
11/17/2023, 7:19 PM
Hi! This particular bit is a bit obsolete. It’s not a hard requirement now, but you still can experience linking issues if you use some static linkage mode in the Podfile because frameworks of Pod-dependencies are linked dynamically to the K/N framework.
Anyway, thanks for the message, we’ll try rewrite the doc in a more clear way
11/17/2023, 7:25 PM
Thank you, it was very confusing to read it, because I have a deep iOS experience and according to my knowledge, before Kotlin version 1.8.20 the pods could be linked statically and the result framework would contain everything.
After 1.8.2 it uses dynamic linkage, but if we switch to the podfile, there are no relationship in the configuration with Kotlin/native to pods configurations.
11/17/2023, 7:42 PM
Afaik dynamic linkage for the dependencies was used from the beginning. And in 1.8.x default linkage of the resulting binary itself was changed