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

Question Can I remove files from symbols.zip to make symbol file smaller?

Discussion in 'Android' started by Exarpo, Oct 4, 2020.

  1. Exarpo

    Exarpo

    Joined:
    Nov 25, 2019
    Posts:
    51
    When buidling an .aab file for 64 bit, the symbols.zip file contains two files, armeabi-v7a and arm64-v8a, if I understand correctly, the first one is for 32bit and the second one for 64. So I assume I should upload both so that both 32 and 64 bit devices can use it.
    The problem is the file is 380mb big even though my app is as really simple one, play console only accepts up to 300mb so I need to make my file smaller, my question is:
    Can I remove some of the files in the symbols.zip to make it smaller? I've for example read somewhere that I could remove the "libil2cpp.so.debug", is that true? I don't know why unity would create it in that case. Also what do the other files do and do I need all of them?
     
  2. kaarloew

    kaarloew

    Joined:
    Nov 1, 2018
    Posts:
    360
    You can recompress the .zip with maximum compression to make it smaller.
     
  3. Exarpo

    Exarpo

    Joined:
    Nov 25, 2019
    Posts:
    51
    I've seen that tip on other places on the internet, but this doesn't seem to actually work.
    When I unzip and rezip the file, it does indeed get a lot smaller, but the play console won't accept the rezipped file!

    Edit:
    When I tried uploading it, it gave an error saying something in terms of:
    "The native debug symbols contain an invalid directory my_app.symbols. Only Android ABIs are supported."
     
  4. Exarpo

    Exarpo

    Joined:
    Nov 25, 2019
    Posts:
    51
    Hey I also found this piece of advice somehwere...
    "I believe Symbols.zip contains debugging symbols used for generating stack traces when an error occurs. It should be safe to remove this, though you might have difficulty diagnosing crash reports."
    There are indeed files in the symbols.zip that are called something with debug, can i remove those?
     
  5. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,663
    Yes, you can remove files ending with .debug. Also you need to rename file extension .sym.so to .so
     
    kalibcrone and Exarpo like this.
  6. Exarpo

    Exarpo

    Joined:
    Nov 25, 2019
    Posts:
    51
    Okay, I did exactly this, play console accepted the file, and my game is finally fully uploaded! Thank you for all your help, hope you're having a fabulous day!