Is it possible to use a KMP library hosted on Mave...
# multiplatform
j
Is it possible to use a KMP library hosted on Maven Central inside of an iOS app without using Compose Multiplatform?
p
Yes, you need an umbrella module you cannot consume a
klib
directly from Xcode or SPM. To consume directly from SPM or Xcode the packaging has to be a bit different. Instead of a klib the library owner should deliver an
.framework
file. But this second modality is rarely used since normally you want to consume many kmp libraries and for that you need an umbrella module anyway. However, you can create an umbrella project consume all klibs you want and then create and host an
.framework
of your company umbrella project. So the iOS team just consume that umbrella framework containing all the kmp features, this is the most popular approach.
🙏🏿 1