Hey guys, Just updated the 'kotlin-multiplatform' plugin from 1.3.10 and 1.3.21..
Also updated the compilations.main.outputkinds to new binaries block..
And noticed the generated iOS target framework size has increased..
Previously it was
Debug Framework = 4.3MB
Release Framework = 2.8MB
After update
Debug Framework = 4.8MB
Release Framework = 7.1MB
Debug version contains (Arm32, Arm64, x64)
Release version contains (Arm32, Arm64)
Also now release framework size is greater than the Debug version. Why is this happening.
Am I doing something wrong..
It seems the release notes are not on github but I remember that in Kotlin 1.3.20 was stated that bitcode is now on by default. Probably that makes the difference.
💯 1
s
subin s v
02/17/2019, 6:32 PM
@Jurriaan Mous but still I expect release version of framework to be smaller than debug version. Correct me if I am wrong.
s
svyatoslav.scherbina
02/18/2019, 7:05 AM
Yes, this is most likely caused by the embedded bitcode.
but still I expect release version of framework to be smaller than debug version.
Debug version doesn’t have bitcode embedded.
💯 1
s
subin s v
02/18/2019, 9:00 AM
That makes sense.. Thanks for the help guys.. 🙂
subin s v
02/18/2019, 12:45 PM
Just an update.. I tried disabling bitcode and you are right.. The library size decreased.. This is due to bitcode 👍