I am using protobuf-net v2 beta r450 (binary distribution) and building a serialization assembly ahead of time using the technique described here:
http://www.frictionpointstudios.com/blog/2011/3/31/using-protobuf-net-serialization-in-unity-iphone.html
I create my serialization assembly on Windows and use it in my MonoTouch project. It works under the simulator. But when run on the device, where AOT compilation only is enforced, I get this error:
attempting to JIT compile method 'ProtoBuf.BufferPool.GetBuffer()'
while running with --aot-only
The exception occurs when Serialize() is called:
using (var stream = File.Create(out_file))
{
serializer.Serialize(stream, settings);
}
Thanks for any help.