Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unity iOS App Size weighs 1.2GB (real size) (Android 100MB)

Tags:

ios

ios7

unity3d

I have an app, that is made with unity 2d. Exporting it to android it weighs 100MB. Exporting it to iOS weighs 1.2GB (ipa is 104MB), but inside iTunes weighs 1.2GB, which is too much.

We tried to reduce the texture size, but then, images get very pixelated on the device.

Any ideas on how to fix this?

Here is what the .ipa uncompressed shows what is getting all the MB:

sharedassets4.assets (just that file, gets 342 MB)

like image 389
Maria Camila Avatar asked Nov 09 '15 16:11

Maria Camila


1 Answers

iTunes shows the installation size, so if you unzip your ipa file, you will get those 1.2GB. The install size on Android could also that big. Did you check that?

Usually this happens when you compressed your texture in True Color or 16 bits and the zip compression works really well i.e. on textures that have a lot of pixels with the same colors.

Possible Solutions

1) if your textures don’t require transparency, you could switch to compressed Textures (PVRTC on iOS and ETC on Android). But if the require transparency, you should not switch to compressed because transparent PVRTC can look very ugly and ETC does not support alpha.

2) I don’t know if it is possible in your project, but you could try to reduce the amount of texture by using tint or slicing them.

UPDATE 1

I currently having a similar situation and as it turns out.

 -------------------------------------------- 
| Platform                Android    iOS     |
|--------------------------------------------|
| APK/IPA                 380MB      400 MB  |
| unzipped APK/IPA        1.19 GB    1.13 GB |
| install size on device  380MB      1.15 GB | 
 --------------------------------------------

The difference is that iOS unzips the IPA file completely on installation and
Android contrary reads during runtime directly out of the APK, so you could argue, that is not really installed, but it is definitely another installation type.

like image 129
JeanLuc Avatar answered Nov 06 '22 10:11

JeanLuc