★ TouchArcade needs your help. Click here to support us on Patreon.

My iOS binary file is 3 times bigger than Android (UNITY)

09-09-2015, 02:52 AM
#1
Joined: Jul 2015
Location: Sweden
Posts: 74
My iOS binary file is 3 times bigger than Android (UNITY)

Hey dev! I'm wondering if anyone of you have the same problem as me. When I build for iOS the binary size is 150mb, but for android the same game is only 50mb. It's so frustrating because I want it under 100mb but it seems impossible? Any help?
Thanks!
09-09-2015, 05:03 AM
#2
That's the problem with "fat binaries" (supporting both 32bit and 64bit), the fat binaries consist of 2 builds in the same package, so that's why it's so big.
You can try a few ways to optimize build size: stripping, removing dsym, optimize your graphics & sounds,....
09-09-2015, 05:27 AM
#3
Joined: Jul 2015
Location: Sweden
Posts: 74
And for uploading it to itunes you are required to have both 32 and 64bit right? So it's kinda impossible to avoid it
I've got it down from 190 to 150 by stripping it etc, but can't really get it down more.

Thanks for the answer!
09-10-2015, 06:20 AM
#4
Joined: Jul 2010
Posts: 247
3 times larger still seems a little too much, our size for iOS is a little less than twice as large (also using Unity).
We found large background images were taking way more space than we expected them to, and optimising that saved a lot of space, so that might be something to look into.