Search Unity

Is there a way to get all classes stripped by IL2CPP?

Discussion in 'Editor & General Support' started by HHess, Feb 17, 2020.

  1. HHess

    HHess

    Joined:
    Jan 8, 2019
    Posts:
    5
    Hunting down IL2CPP stripping issues can sometimes be a huge pain.

    Your game crashes at some random point or a json deserializer returns null because one of the classes was stripped. This is especially fun when dealing with 3rd party code.

    Is it be possible to retrieve a list of all IL2CPP stripped classes?
    With this info you could then easily update the link.xml
     
    Can-Baycay likes this.
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,930
    We don't have a way to easily expose this information now. One technique you might try is an assembly diffing tool like this: https://www.telerik.com/justassembly

    You could diff the stripped and unstripped versions of the assembly, which should indicate what is missing.
     
  3. HHess

    HHess

    Joined:
    Jan 8, 2019
    Posts:
    5
    Thanks for your reply! I will look into the diff tool.
    An easy way to get to this info (maybe a log file?) would be awesome though.