Search Unity

Ipa resources are much bigger than android after installation??

Discussion in 'Scripting' started by JohnSonLi, Dec 3, 2018.

  1. JohnSonLi

    JohnSonLi

    Joined:
    Apr 15, 2012
    Posts:
    586
    my ipa is 80Mb, and 380Mb after installation, I unzip ipa and found that
    resources.assets 60.7Mb
    resources.assets.resS 210Mb
    Look like textures are never compressed.
    So... why is it so large??? PVRTC doest solve all these??
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,745
    This has been my experience on iOS as well. I've never had a good explanation but I think it is because on Android, the APK is stored in its zipped form, but with iOS, parts (or all?) of it is unzipped at installation time, probably for performance reasons, or perhaps for runtime code-sign-checking reasons.

    One other difference is that when you put a JPEG or PNG into Unity, Unity unpacks it to a texture format ready for delivery to the rendering hardware. In a native iOS program, that JPEG actually goes out with the binary and is unpacked at load time.
     
  3. JohnSonLi

    JohnSonLi

    Joined:
    Apr 15, 2012
    Posts:
    586
    Thanks