Hello in our KMP project we are seeing extremely h...
# ios
s
Hello in our KMP project we are seeing extremely high build times. Of order of 30-40 minutes. We are trying to figure practices to reduce the build times. Part of the reason the build time is so high is because we are building out both x86 and arm flavors. Removing one of them only reduced build time by half. What other ideas we can implement to reduce build time? Is modularizing a good idea? I know iOS doesn’t support importing multiple frameworks built on kmp. But would just splitting into many modules help? Still package them into umbrella framework. Anyone has thoughts?
f
Also, reduce the exposed content with explicitApi(), If you’re using some KSP where you can’t set the visibility in the umbrella/framework module, move them to another module.
p
I think splitting into separate modules will definitely help since the build won't compile these modules it will only link into them. However, the above technique puts stress on managing backwards compatibility in the modules, especially when they are transitively dependent between themselves
s
Thank you. I’m going to try these ideas tonight