Reputation: 32247
Backstory
I built my unity app to android x64 using IL2CPP which has worked fine in the past but after a lot of changes I'm now getting crashes somewhat spontaneously.
Signals received:
I don't have much to go on other than I only get see this crash on android, not my 64bit win11 unity editor nor 32bit Android (still built with il2cpp).
Question
Where do I even start to troubleshoot this ?
Potential Solution
While gathering information to post this question I stumbled across a solution although I'm still 100% sure of the underlying issue.
My best guess is bad cache from a previous build.
Upvotes: 0
Views: 943
Reputation: 32247
For anyone else who runs into this issue: it seems il2cpp related. The easiest fix seems to be switching build type (il2ccp <> mono) and back. Sometimes I've had to go as far as a mixture of cleaning the build from within android studio and/or cleaning the build from unity, followed by resetting my .git project with $ git checkout .
.
Upvotes: 0