Is there any documentation for ServiceStack.Text.JSConfig regarding MonotTouch AOT helpers?
I found this ... ServiceStack JIT bug in MonoTouch and I looked at the code, but there are no comments, and frankly, this is a little cryptic.
From my understanding of the AOT process, all I need to do to make sure that the type / method method is emitted is that this type / method is used in the same source, where the compiler thinks it can be used / called. There is no need to actually use / call anything at runtime. The whole point of AOT is that it is a compile-time process. Therefore, using a function / call inside a method that is not used will work until the optimizer removes it.
I am trying to use ServiceStack.Text.JsConfig.RegisterTypeForAot (); (in an unused method) to cure my AOT problems, but ran into other strange problems when I have too many calls. See Another question ...
Call ServiceStack.Text.JsConfig.RegisterTypeForAot <T> (); with MonoTouch calls SIGSEGV when run on the device
Perhaps I mistakenly used the RegisterTypeForAot () method? What do other methods do? RegisterForAot () and InitAot ()
Felix source share