Quantcast
Channel: Questions in topic: "xcode"
Viewing all articles
Browse latest Browse all 1047

iOS AOT ExecutionEngineException

$
0
0
Hello! I'm trying to use SerializableCallback project from this Repo: [GitHub][1] [1]: https://github.com/Siccity/SerializableCallback And i've got problem with this section of class: > ExecutionEngineException: Attempting to call method 'InvokableCallback`2 [...] ::.ctor' for which no ahead of time (AOT) code was generated. It seems to cannot compile ctor of my lass: public class InvokableCallback : InvokableCallbackBase { public Func func; public TReturn Invoke(T0 arg0) { return func(arg0); } public override TReturn Invoke(params object[] args) { return func((T0) args[0]); } /// Constructor public InvokableCallback(object target, string methodName) { if (target == null || string.IsNullOrEmpty(methodName)) { func = x => default(TReturn); } else { func = (System.Func) System.Delegate.CreateDelegate(typeof(System.Func), target, methodName); } } } Is there any workaround?

Viewing all articles
Browse latest Browse all 1047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>