# ios

Sean Keane

01/16/2020, 7:22 PM
Hi everyone! We are building a networking layer to be shared across Android and iOS and in the future Web. The issue I'm facing at the moment is the common.framework (Common is my shared module name) size is 12mb? but when it compiles the android aar file its ~200kb. We look to expose these SDK's to clients. Is it possible to reduce the size of the framework that has been generated?


01/16/2020, 9:58 PM
I've been in the position of authoring a commercial SDK before and faced the same question. I do think Kotlin/Native is currently lacking both size & performance optimisations which will be widening the discrepancy between your iOS and Android library sizes. With that said: iOS vs Android library size is ultimately a false comparison - they are different platforms that work differently and I always did find the iOS sizes to be generally larger. Factors to consider are the degree to which SDK code is either linked into (included) or linked against (referenced), or the typical inclusion of multiple architecture 'slices' in the iOS binary.