To make integration easier we should automatically compile generated Swift code and automatically link this compiled swift with kotlin framework.
in this case we can use any integration to xcode (cocoapods. regular framework, xcframework and any other) and should not copy some files to our swift xcode project.
research repository here - https://github.com/Alex009/moko-kswift-linker
at now i see how we can add swift compiled additions to static framework without overhead. but for dynamic framework we should do link stage two times. firstly just compile kotlin code, then generate swift, compile swift using compiled kotlin and then again run link of dynamic kotlin framework with added swift static library.
To make integration easier we should automatically compile generated Swift code and automatically link this compiled swift with kotlin framework. in this case we can use any integration to xcode (cocoapods. regular framework, xcframework and any other) and should not copy some files to our swift xcode project.
research repository here - https://github.com/Alex009/moko-kswift-linker at now i see how we can add swift compiled additions to static framework without overhead. but for dynamic framework we should do link stage two times. firstly just compile kotlin code, then generate swift, compile swift using compiled kotlin and then again run link of dynamic kotlin framework with added swift static library.