I’m using AssimpNet which causes my Android build to fail with il2cpp. The problem seems to be caused by the post-build step of AssempNet.dll where it gets IL patched using Mono.Cecil which I’m not very familiar with.
It looks like this error happens when IL2CPP encounters the Mkrefany IL opcode, which IL2CPP does not support. I’m not sure what AssimpNet is doing to the IL, but it might worth looking through the patched code (maybe using ildasm) for the Mkrefany opcode.
I used ildasm to dump to the patched DLL to a txt file and found no mention of Mkrefany if this is the correct way to look for it.
The patching program source code is all given by this c# file