Search Unity

iOS compression doesn't work

Discussion in 'Unity Build Automation' started by codematic, Jan 21, 2019.

  1. codematic

    codematic

    Joined:
    Feb 26, 2017
    Posts:
    12
    Hello

    I see that on iOS compression doesn't work. It doesn't matter if I will set to None or LZ4 HC. The build is always the same. Also the build is much bigger than Android one.

    Android:
    15467: [Unity] Build Report
    15468: [Unity] Uncompressed usage by category (Percentages based on user generated assets only):
    15469: [Unity] Textures 355.9 mb 87.4%
    15470: [Unity] Meshes 300.4 kb 0.1%
    15471: [Unity] Animations 598.2 kb 0.1%
    15472: [Unity] Sounds 15.1 mb 3.7%
    15473: [Unity] Shaders 1.0 mb 0.2%
    15474: [Unity] Other Assets 6.3 mb 1.5%
    15475: [Unity] Levels 5.3 mb 1.3%
    15476: [Unity] Scripts 9.2 mb 2.3%
    15477: [Unity] Included DLLs 13.1 mb 3.2%
    15478: [Unity] File headers 280.7 kb 0.1%
    15479: [Unity] Total User Assets 407.0 mb 100.0%
    15480: [Unity] Complete build size 662.2 mb

    19673: WORKSPACESIZE | ARTIFACTSSIZE
    19674: --------------|--------------
    19675: 4.13 GiB | 760.26 MiB

    iOS:
    21541: [Unity] Build Report
    21542: [Unity] Uncompressed usage by category (Percentages based on user generated assets only):
    21543: [Unity] Textures 243.2 mb 88.1%
    21544: [Unity] Meshes 300.4 kb 0.1%
    21545: [Unity] Animations 598.2 kb 0.2%
    21546: [Unity] Sounds 14.8 mb 5.3%
    21547: [Unity] Shaders 1.1 mb 0.4%
    21548: [Unity] Other Assets 6.1 mb 2.2%
    21549: [Unity] Levels 6.0 mb 2.2%
    21550: [Unity] Scripts 912.4 kb 0.3%
    21551: [Unity] Included DLLs 3.0 mb 1.1%
    21552: [Unity] File headers 151.5 kb 0.1%
    21553: [Unity] Total User Assets 276.1 mb 100.0%
    21554: [Unity] Complete build size 952.6 mb

    26623: WORKSPACESIZE | ARTIFACTSSIZE
    26624: --------------|--------------
    26625: 4.18 GiB | 297.26 MiB

    According to UCB Android final build is 97mb and iOS build is 178mb. It's a huge difference. Those numbers don't add up. Android has bigger artifactssize with bigger textures but is 2x smaller than build from ios.

    Anyone knows what is going on?
     
  2. ollieblanks

    ollieblanks

    Unity Technologies

    Joined:
    Aug 21, 2017
    Posts:
    460
    App store signed iOS builds on Cloud Build include the debug symbols so they will get uploaded to the app store along with the game content, this might explain why there is such a dramatic difference in size. This does not change the final install size, it just includes the debug symbols to be able to symbolicate crash reports.

    Hope that helps!
     
    Last edited: Jan 22, 2019
    broersma likes this.
  3. codematic

    codematic

    Joined:
    Feb 26, 2017
    Posts:
    12
    @ollieblanks thanks, I find out that in app store my build is 10-15mb less.