I am attempting to use the XML serializer in System.XML.Serialization. My XML file deserializes fine on the mac, and fails on the iPhone with the following:
Attempting to JIT compile method ‘(wrapper delegate-invoke) System.Reflection.MonoProperty/Getter`2:invoke_string_this__fx_common_color_or_texture_typeColor (goBuild.goBIM.fx_common_color_or_texture_typeColor)’ while running with --aot-only.
Apparently it’s trying to JIT compile get/set methods in my XML, and the only suggested work-around from Mono is to call each method that I will eventually need prior to deserialization in order to force inclusion in AOT. This is unreasonable for a number of reasons, not the least of which is that I don’t know exactly what methods I’ll need.
Does anyone know how to get XML deserialization to work?
I’m using Unity Pro iPhone with stripping disabled targeting .NET 2.1.