icerockdev / moko-kswift

Swift-friendly api generator for Kotlin/Native frameworks
https://moko.icerock.dev
Apache License 2.0
350 stars 21 forks source link

Compile Swift code inside Kotlin framework #80

Open Alex009 opened 1 year ago

Alex009 commented 1 year ago

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.

marcorighini commented 1 year ago

This would a great improvement, do you have some updates?