When building against multiple KMP libraries on iOS, does the final application size increase linearly? I've seen the minimum .framework target I can generate for iOS is around ~2MB. If building against N KMP libraries does the iOS application binary end up being N * ~2MB larger? If so, that would be a concern in using multiple KMP libraries on iOS, would it be possible to do any optimizations, perhaps combining into a single .framework?
06/24/2020, 2:38 AM
You can create an umbrella Kotlin framework that pulls in multiple modules and klibs to create one big compiled framework. That’s the typical way today. The main use of including multiple Kotlin binary frameworks is to use 3rd party frameworks that you can’t compile yourself (closed source).
As far as I know there isn’t any way to stitch together multiple binary frameworks.