Hey! π
Is it possible to distribute a KMP module as a pure Framework (or w/e the name is for Libraries in iOS ecosystem)? I would want my iOS counterparts not to have to build the module but receive it as a⦠Pod dependency?
Is there any way to do this or itβs mandatory for them to have the Java SDK and such to build it locally?
a
ankushg
11/12/2021, 5:21 PM
It is possible to do this, and it's what we do most of the time at Quizlet
n
Nacho Ruiz Martin
11/12/2021, 5:22 PM
Could you point me in any direction to research? π
Yup! You can also combine this with the local-build approach, which IMO gets the best of both worlds.
We have our iOS app's Podfile set up to fetch a published artifact by default, but allow iOS engineers to also point to the local Podspec generated by the Cocoapods Gradle plugin
This lets us
β’ default to speedy iOS builds that consume pre-built KMP artifacts without iOS devs needing the JDK installed,
β’ but also lets us quickly swap over to using local KMP code when we need to iterate quickly or debug issues. This pairs well with @kpgalliganβs https://github.com/touchlab/xcode-kotlin plugin for debugging too π