Search Unity

Reduce iOS build size

Discussion in 'Unity Build Automation' started by anhptoe, Jan 13, 2017.

  1. anhptoe

    anhptoe

    Joined:
    Dec 1, 2016
    Posts:
    5
    I have a simple 2D game. When built with XCode and enable BitCode, the app size is > 120mb, after disable it, the app size is ~ 60mb. But when I use Unity cloud build, the app size is only ~ 16mb. How can I achieve that small app size with xcode?
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    What do you count as app size? on iOS it can be a bit misleading, as this may not be the actual download size your users will see when downloading it from the App store.
     
  3. SophiaC

    SophiaC

    Joined:
    Sep 6, 2016
    Posts:
    238
    Hello,

    Which version of XCode are you using, and which version of Unity?

    - Sophia
     
  4. anhptoe

    anhptoe

    Joined:
    Dec 1, 2016
    Posts:
    5
    I'm using Xcode version 8.2.1 and Unity version 5.4.1f
    I dont know. I count on the app size in TestFlight app
     
  5. anhptoe

    anhptoe

    Joined:
    Dec 1, 2016
    Posts:
    5
    Maybe the app size shown in TestFlight app is the size when the app installed, not the download size. I'm so confused.
     
  6. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    When you upload your .ipa to iTunes, you have the option to see the "App store file sizes".
    upload_2017-1-17_8-41-14.png
    I believe this is the most accurate estimate of the download size that your users will experience:
    upload_2017-1-17_8-38-42.png
     
  7. anhptoe

    anhptoe

    Joined:
    Dec 1, 2016
    Posts:
    5
    Thanks for your information.
    Here is my cloud build size:
    Ảnh chụp Màn hình 2017-01-17 lúc 3.31.03 CH.png
    And here is XCode build size:
    Ảnh chụp Màn hình 2017-01-17 lúc 3.31.19 CH.png
    It's not a really big problem (at least with my small game, I don't know what will happen with a big game). However I want to know what is the difference.
     
  8. ophilbert

    ophilbert

    Joined:
    Dec 3, 2014
    Posts:
    47
    There is a difference between the ipa you build and the one that is provided to users on the AppStore. Apple re-process your ipa once submitted.

    From Apple
    You can also check this thread that deals with the ipa size increase with or without bitcode
     
  9. GilesDMiddleton

    GilesDMiddleton

    Joined:
    Aug 12, 2015
    Posts:
    91
    I've got a simple Unity game that's 16mb as Web GL, 21mb as apk, 512mb as xcarchive and eventually is listed as 61Mb in the App store. Is there a magic button to press to get tiny iOS apps?
     
  10. FaunaGames

    FaunaGames

    Joined:
    Mar 23, 2017
    Posts:
    5
    Same here, 16 mb android, 60 mb ios.
     
  11. paresh_unity496

    paresh_unity496

    Joined:
    May 6, 2019
    Posts:
    5

    you mean what is see in Xcode product folder it's not actual size that use need to download from App Store ?
     
  12. mylastggColto

    mylastggColto

    Joined:
    Feb 28, 2017
    Posts:
    28
    correct