Xml deserialization on iPhone

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.

reflection does not work for various cases on .net 2.1

so if you want to serialize and deserialize then through a non-reflection based way (ie you hardcode the read and write to the nodes)

This works fine for me. Not sure if it will help with your case though. Here is a sample script.