Search Unity

Mininum build size

Discussion in 'macOS' started by xrm0, May 9, 2019.

  1. xrm0

    xrm0

    Joined:
    Feb 26, 2013
    Posts:
    86
    Hi, building a macOS app with a blank (newly created) project generates a 100MB app.
    Is there any way to reduce it?
     
  2. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    That's weird. Mine is 56.4MB. I can get it down to 43.3MB w/ stripping. 37.7MB w/ IL2CPP & High Managed Stripping.
     
    xrm0 likes this.
  3. xrm0

    xrm0

    Joined:
    Feb 26, 2013
    Posts:
    86
    Thanks @HonorableDaniel

    I've tried again, Unity 2019.1.0f2 Personal, macOS 10.14.4 a blank 3d project without scenes.

    With default settings: 107.6MB

    With LZ4HC as compression method, IL2CPP, high stripping level: 90.6MB

    All of the above options plus removing the installed packages in the project (Unity Timeline, Unity Collaborate, TextMesh Pro, Ads, Analytics Library, In App Purchasing): 90.6MB

    All of the above options plus disabling some installed built-in packages in the project (VR, XR, Unity Web *, Cloth, Terrain, Terrain Physics, Unity Analytics, Vehicles, Video, Wind, Physics 2D, Tilemap, Screen Capture): 90.6MB

    All of the above plus "C++ Compiler configuration" to 'Master': 90.8MB

    Using the Build Report (http://files.unity3d.com/build-report/) it says the build size is 16MB o_O


    @HonorableDaniel: What Unity version are you using? Are you using macOS or windows? (I've recently built a project for windows and got a similar like you).
     
  4. User340

    User340

    Joined:
    Feb 28, 2007
    Posts:
    3,001
    I'm using 2018.3, macOS.
     
  5. matrix2b

    matrix2b

    Joined:
    Oct 26, 2017
    Posts:
    1
    i'm using 2019.1.1f1, same problem,
    build contains alot of dylibs of built-in packages, even i disable almost all of them, they'are still there
    maybe i should try use 2018 editor