Join Slack
Powered by
Does anyone have a good example a KMP library bein...
# kotlin-native
k
Kartik Prakash
07/28/2021, 1:27 AM
Does anyone have a good example a KMP library being published for iOS (Kotlin-Native)? Ideally we want to build a KMP library publish it and consume it in a pure iOS project Obj-C or Swift.
m
mbonnin
07/28/2021, 7:58 AM
Usually, KMP libs publish klibs artifacts (look at
okio for an example
).
mbonnin
07/28/2021, 7:59 AM
These klibs are to be used by Kotlin projects, not pure iOS/Swift projects
mbonnin
07/28/2021, 8:00 AM
For that, maybe take a look at the CocoaPods plugin:
https://kotlinlang.org/docs/native-cocoapods.html#use-a-kotlin-gradle-project-as-a-cocoapods-dependency
k
Kartik Prakash
07/28/2021, 5:06 PM
Thanks. I also found this plugin:
https://github.com/ge-org/multiplatform-swiftpackage
To consume your library in a swift project using Swift Package Manager.
👀 1
3
Views
Open in Slack
Previous
Next