Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
544 views
in Technique[技术] by (71.8m points)

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

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)

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...