Can someone please point me in the right direction...
# ios
i
Can someone please point me in the right direction? I have an existing iOS app at
<http://github.com/iOSapp|github.com/iOSapp>
. I also have an existing KMM module at
<http://github.com/KMMModule|github.com/KMMModule>
What is the easiest way to import the KMM module into the iOS app? I was able to do that locally by manually importing the shared.framework in Xcode, but I also need this setup to be CI friendly. Thanks in advance!
p
You have 3 options. • Direct integration, you have it already. This is the easiest. • SPM, there is a page in the docs describing how to do so. • Cocoapods, kind of requiring the same level of effort as SPM. The 3 are pipeline friendly. Number 1 you have to have the kmp shared module in the same repo. Number 2, with SPM you can do local but also host it remotely. Number 3 I am not sure, I haven't used it in 2 years, also I heard cocoapods project just enter maintenance mode so it won't be the right move investing on it.
gratitude thank you 1
i
For option #2 it's this, right? https://kotlinlang.org/docs/native-spm.html
p
I am not sure if is the same link. But I would start from here: https://www.jetbrains.com/help/kotlin-multiplatform-dev/multiplatform-project-configuration.html
i
Great, thanks!
👍 1
p
This one is worth checking too. For local development using SPM: https://kotlinlang.org/docs/multiplatform-spm-local-integration.html
❤️ 1