I have an app in .Net MAUI(.net 7.0) that works when debugging on both Android and iOS, the problem comes when I have to release on iOS with the Ahead-Of-Time (AOT) compilation.
The error:
Arg_targetinvocationexception attempting to JIT compile method ‘void
generatedProxy_1:.ctor(System.Reflection.MethodInfo[])’ while running
in aot-only mode.
I had to catch this problem with a try/catch and it gives me in one of the WCF web services.
Could you explain to me the difference between degub and release because that’s where the error must be.