Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

iOS build size too high/large for no apparent reason

Discussion in 'iOS and tvOS' started by rmjfox, Oct 26, 2018.

  1. rmjfox

    rmjfox

    Joined:
    Jun 4, 2018
    Posts:
    9
    I have a very small game with just 2 scenes and least number of assets.3 plugins have been used like Unity IAP, Googleplaygames plugin and google admob plugin. Thats all there is. Yet the build size is way too high. Over 600MB(over 700MB in archive)!!

    Below I have posted the build report in the editor log for both iOS and android. As you can see no specific category is taking up much space but yet the complete size is large for both andorid and ios. iOS size way more than android as well.

    Does anyone know whats causing this extra size as its not even showing in any other category?

    iOS -
    Build Report
    Uncompressed usage by category:
    Textures 17.0 mb 2.7%
    Meshes 0.0 kb 0.0%
    Animations 4.9 kb 0.0%
    Sounds 547.9 kb 0.1%
    Shaders 15.6 kb 0.0%
    Other Assets 237.0 kb 0.0%
    Levels 63.2 kb 0.0%
    Scripts 399.6 kb 0.1%
    Included DLLs 0.0 kb 0.0%
    File headers 28.0 kb 0.0%
    Complete size 632.2 mb 100.0%


    Android -
    Build Report
    Uncompressed usage by category:
    Textures 16.3 mb 12.0%
    Meshes 0.0 kb 0.0%
    Animations 4.9 kb 0.0%
    Sounds 548.0 kb 0.4%
    Shaders 11.8 kb 0.0%
    Other Assets 237.0 kb 0.2%
    Levels 63.3 kb 0.0%
    Scripts 1.5 mb 1.1%
    Included DLLs 5.1 mb 3.8%
    File headers 204.5 kb 0.1%
    Complete size 136.1 mb 100.0%


    Unity Version - Unity 2018.1.0f2 Personal(64bit)

    I tried "fast but no exception" script call optimization in ios but no difference. This game should hardly take 70-100MB. Few MB difference i can understand but this is way too high!
    I wont be able to release the app with this much size. Please help
     
    Last edited: Oct 26, 2018
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    at least ios builds seem to be always bigger, our android is 68 MB, ios 173.9 MB..
     
  3. rmjfox

    rmjfox

    Joined:
    Jun 4, 2018
    Posts:
    9
    From the posts I have read, I expected that difference. But why is it so large in the first place is what I dont understand. Because its not showing any category taking up that much size
     
  4. rmjfox

    rmjfox

    Joined:
    Jun 4, 2018
    Posts:
    9
  5. Crichton333

    Crichton333

    Joined:
    May 4, 2014
    Posts:
    113
    81.5 MB for a few main menu pics still seems big. From the screenshots it seems like it's just a black backround and few effects.
     
  6. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,037
    Building for a modern device isn't the same simple deal it was when you just had one target.

    On iOS you're building for many different devices with different CPUs so Apple made the build tools create intermediate code for every possible target, which is finaly linked at their end to whatever the target device requires. The user only downloads the relevant subset of that for their device. It's the same deal as the different resolution variants of images taken to the next level.