Search Unity

50 MB used assets size became 700+ MB build size

Discussion in 'iOS and tvOS' started by rathpanyowat, Mar 14, 2018.

  1. rathpanyowat

    rathpanyowat

    Joined:
    Nov 9, 2017
    Posts:
    6
    Hi, I'm new to Unity. I have created a game with just one scene and it's pretty simple.



    The problem is after I built it, it became 700+ MB like this:



    Size of Xcode Project Folder: 726.45 MB
    Total Used Assets Size: 638.6 MB

    When I looked at the used assets breakdown list, texture took most of the space at 46.1 MB. I understand that I didn't optimize it well and I'll do it soon. However, what confused me is even if I added everything, it still couldn't more than 50 MB.

    The file size after build from Xcode is also large:



    So, I wonder how the additional 700MB are from? And is there any ways to reduce it? (I already tried everything written in the Unity website (https://docs.unity3d.com/Manual/ReducingFilesize.html) except the texture because it takes time to recreate many of them. But non of other things help that much.)

    Thank you :)
     
    Last edited: Mar 14, 2018
  2. rathpanyowat

    rathpanyowat

    Joined:
    Nov 9, 2017
    Posts:
    6
    Update: Although it's a pretty large build size. It looks like it's not that large when compile to IPA

    App Thinning Size Report for All Variants of Unity-iPhone

    Variant: Unity-iPhone-iPad (4th generation)-etc.ipa
    Supported devices: iPad (3rd generation) and iPad (4th generation)
    App + On Demand Resources size: 14.5 MB compressed, 45.4 MB uncompressed
    App size: 14.5 MB compressed, 45.4 MB uncompressed
    On Demand Resources size: Zero KB compressed, Zero KB uncompressed


    Variant: Unity-iPhone-iPad 2-etc.ipa
    Supported devices: iPad 2 and iPad mini
    App + On Demand Resources size: 14.6 MB compressed, 45.4 MB uncompressed
    App size: 14.6 MB compressed, 45.4 MB uncompressed
    On Demand Resources size: Zero KB compressed, Zero KB uncompressed


    Variant: Unity-iPhone-iPad Pro (12.9-inch)-etc.ipa
    Supported devices: iPad (5th generation), iPad Air, iPad Air 2, iPad Pro (10.5-inch), iPad Pro (12.9-inch), iPad Pro (12.9-inch) (2nd generation), iPad Pro (9.7-inch), iPad mini 2, iPad mini 3, and iPad mini 4
    App + On Demand Resources size: 13.8 MB compressed, 47.7 MB uncompressed
    App size: 13.8 MB compressed, 47.7 MB uncompressed
    On Demand Resources size: Zero KB compressed, Zero KB uncompressed


    Variant: Unity-iPhone-iPhone 6 Plus-etc.ipa
    Supported devices: iPhone 6 Plus, iPhone 6s Plus, iPhone 7 Plus, iPhone 8 Plus, and iPhone X
    App + On Demand Resources size: 13.7 MB compressed, 47.7 MB uncompressed
    App size: 13.7 MB compressed, 47.7 MB uncompressed
    On Demand Resources size: Zero KB compressed, Zero KB uncompressed


    Variant: Unity-iPhone-iPhone SE-etc.ipa
    Supported devices: iPhone 5s, iPhone 6, iPhone 6s, iPhone 7, iPhone 8, iPhone SE, and iPod touch (6th generation)
    App + On Demand Resources size: 13.7 MB compressed, 47.6 MB uncompressed
    App size: 13.7 MB compressed, 47.6 MB uncompressed
    On Demand Resources size: Zero KB compressed, Zero KB uncompressed


    Variant: Unity-iPhone-iPod touch-etc.ipa
    Supported devices: iPhone 4S, iPhone 5, iPhone 5c, and iPod touch
    App + On Demand Resources size: 14.5 MB compressed, 45.4 MB uncompressed
    App size: 14.5 MB compressed, 45.4 MB uncompressed
    On Demand Resources size: Zero KB compressed, Zero KB uncompressed


    Variant: Unity-iPhone.ipa
    Supported devices: Universal
    App + On Demand Resources size: 22.3 MB compressed, 64.9 MB uncompressed
    App size: 22.3 MB compressed, 64.9 MB uncompressed
    On Demand Resources size: Zero KB compressed, Zero KB uncompressed
     
  3. orb

    orb

    Joined:
    Nov 24, 2010
    Posts:
    3,037
    Yes, don’t worry too much about the size of what you upload to Apple. It contains pre-optimised data, basically. Each user will get a fairly small app which varies by device.

    Download sizes might even change without you doing anything if Apple come up with some strange, new optimisation.
     
    benzsuankularb and Mauri like this.
  4. rathpanyowat

    rathpanyowat

    Joined:
    Nov 9, 2017
    Posts:
    6
    OK, thank you :)