Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

App Store Size Problem

Discussion in 'iOS and tvOS' started by afavar, Aug 11, 2014.

  1. afavar

    afavar

    Joined:
    Jul 17, 2013
    Posts:
    57
    Hello everyone i am currently working on a new project. The problem i have is about the app size. I have it bought on Android and iOs. In google play store it is 10 mb but in appstore it is 28 mb. I created an .ipa file with xcode and it is 14 mb. 4 mb is not important but i dont understand why does my app sizes 28 mb instead of 14 mb when i upload it to AppStore?
     
  2. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Because Apple adds encryption.
     
  3. afavar

    afavar

    Joined:
    Jul 17, 2013
    Posts:
    57
    Well how can others keep it smaller? What kind of encryption is this? It doubles the app size.
     
  4. cbaltzer

    cbaltzer

    Joined:
    Jan 11, 2012
    Posts:
    120
    It's something along the lines of:
    Total size = uncompressed binary + zip of rest of .ipa contents.

    After you archive in Xcode there's an estimate size button which is pretty accurate (though sometimes overestimates). You can also use this tool: https://github.com/cbaltzer/AppStoreEstimation
     
  5. Moonjump

    Moonjump

    Joined:
    Apr 15, 2010
    Posts:
    2,571
    Isn't there something more fundamental to iOS / Android differences? I thought iOS was AOT, but Android was JIT. Wouldn't that have build size implications?
     
  6. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    iOS does use AOT, so all Mono scripts and runtime are converted into Arm assembler during the build process.