2

In Unity when I build using mono and code stripping disabled, my app works fine.

But I can't get ARM64 with mono so I have to use il2cpp.

With il2cpp code stripping is always enabled and it changes my game behaviour. It probably deletes important code.

Google Play ask for arm64 and if I use mono that won't be possible. With il2cpp my app doesn't work as I want.

There are lots of code so I can't publish them here but do you know what kind of code that code stripping deletes.

What can I do?

  • Just making sure, Managed Stripping Level is set to "Low", right? – S.Fragkos Jul 05 '19 at 12:14
  • Yes. I haven't even try medium or high. – Berke Özkır Jul 05 '19 at 12:37
  • Are you using reflection in your code? Also do you have any information of which classes are getting stripped? If you do you can try to use the [Preserve] attribute. More information how to use it: https://docs.unity3d.com/Manual/ManagedCodeStripping.html – S.Fragkos Jul 05 '19 at 12:40
  • I have looked to this documentation but I am not quite sure how to preserve class. If you know please share with me. – Berke Özkır Jul 05 '19 at 14:03
  • @BerkeÖzkır Have you figured it out? We are hitting same problem. Mono works, il2cpp doesn't. We need 64-bit for google play store. – Kubik Nov 26 '19 at 17:23
  • Does anyone have a solution? I'm having the same issue – Meir Keller Jan 17 '21 at 08:05

0 Answers0