As the title states, currently DefaultECS cannot be used with unity3d il2cpp compilation backend due to System.Reflection.Emit code inside framework.
The problem here is that, unlike some other AoT compilation methods, il2cpp does not care if you are using this specific part of the code or nor. Simply having it is enough for a failure, so in order for it to be compatible, .Emit-using code has to be rewritten without its usage.
I did quick and dirty fix for myself by removing affected parts of framework here in my fork repo, so you can look where are the things that causing the problem.
As the title states, currently DefaultECS cannot be used with unity3d il2cpp compilation backend due to
System.Reflection.Emitcode inside framework.The problem here is that, unlike some other AoT compilation methods, il2cpp does not care if you are using this specific part of the code or nor. Simply having it is enough for a failure, so in order for it to be compatible,
.Emit-using code has to be rewritten without its usage.I did quick and dirty fix for myself by removing affected parts of framework here in my fork repo, so you can look where are the things that causing the problem.