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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Stripping works on Personal Edition?

Discussion in 'iOS and tvOS' started by DarkSchneider, Sep 10, 2015.

  1. DarkSchneider

    DarkSchneider

    Joined:
    May 25, 2015
    Posts:
    12
    I use only a few MB of assets, so them are not the problem. Compiling for release and fast with no exceptions.

    - When using mono2x with mscorlib the output is about 250MB.
    - When using IL2CPP, Universal, the output is about 540MB.

    Then build on XCode and Archive, the resulting is, using IL2CPP and Universal architectures, 242MB!! o_O

    The game is very simple with only 1 screen and, as said, a few MB of assets.

    I am using Personal Edition, so, my question is if stripping is working. And if not what is needed.

    Also, I noticed the bigger file inside IPA is the DSYM, it is about +200MB!!. Can I delete it or exclude for the upload?.

    Thanks.
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,778
    @DarkSchneider

    Stripping does work in Personal Edition. The larger size is like due to the binary having a 32-bit slice and a 64-bit slice. You can check out this thread for a good discussion of build size:

    http://forum.unity3d.com/threads/il2cpp-build-size-improvements.322079/

    I believe the DSYM file can be safely removed, although it is used to generate useful symbols for crash reporting, so you may want to keep it around.
     
  3. DarkSchneider

    DarkSchneider

    Joined:
    May 25, 2015
    Posts:
    12
    OK, thank you very much. Yes, finally I solved removing the dSYM generation in XCode project settings. They use too much space, I think it would be better to have them disabled by default for release configuration.
     
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,778
    @DarkSchneider

    I believe that the dSYM file is used by some developers to get better crash reports in release builds, so we live it enabled by default. But at least you have the option to remove it to decrease the final size of the build.
     
  5. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    dSYM files should not affect user download size for your application on App Store.
     
  6. DarkSchneider

    DarkSchneider

    Joined:
    May 25, 2015
    Posts:
    12
    Could you explain more? dSYM uses +200MB in the binary, when upload by XCode there is an option to include them or not. You mean the user never download them and dSYM are only within the binary in the server, but not downloaded to clients?.
     
  7. Mantas-Puida

    Mantas-Puida

    Unity Technologies

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    Yes, it should work exactly that way.
     
  8. DarkSchneider

    DarkSchneider

    Joined:
    May 25, 2015
    Posts:
    12
    Excellent news, thank you!