BreakOutEvent / breakout-ios

BreakOut – As far away as possible. Two people. No money. 36 hours. – For the UNHCR.
http://break-out.org
5 stars 2 forks source link

reduce app binary file #115

Open alexkaessner opened 7 years ago

alexkaessner commented 7 years ago

The installed app binary size is currently relatively high. Would be nice to reduce it more, to have a even smaller download for all users during the event.

BreakOut 3.0 (5): screenshot

Compared to this, the old version (v2.2) is rated by the App Store as 42,7 MB size.

nerdsupremacist commented 7 years ago

I took a look at the binary file we have. And our binary is that big because of 145 MB of frameworks. Most of the bloated binaries are the standard Swift Libraries. Hopefully they won't be relevant in the Store release because of whole-module optimization. However I'm not sure. But this explains why the download is about 40 MB instead of the 180 you see in the settings.

BTW. I just saw that Sweeft takes up 8 MB. Holy sh*t!

nerdsupremacist commented 7 years ago

We should look into compiling all the FWs as static libraries. We could dramatically reduce the binary file by getting rid of expensive dynamic libraries. Apparently this should be now available for Swift in Xcode 9

nerdsupremacist commented 7 years ago

TODO: Check on static library linking whenever Cocoapods 1.4.0 is released