I am using the MonoTouch Service Stack assembly from
Those .dlls are older than 3 months and a similar problem was found and fixed a month ago.
I get a JIT error. I thought MonoTouch took care of this in the assembly?
Yes. When creating for MonoTouch, AOT (ahead of time) is used. He compiles everything that he knows will be needed at runtime.
However, sometimes the AOT compiler cannot know everything (for example, general virtual methods) or compile all possible options (for example, value types). See the General Restrictions section of the documentation website. In this case, the AOT compiler may need help (a signature that will compile the correct code, for example, something like this ).
It could also be a mistake - where for some reason the requested method was not AOT'ed. When this is detected, an exception is thrown at runtime because the code is missing and the JIT cannot be used to provide it.
source share