JIT compile error with protobuf-net on MonoTouch/iOS device (iPhone/iPad)

后端 未结 2 463
小鲜肉
小鲜肉 2021-01-14 13:40

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.frictio

相关标签:
2条回答
  • 2021-01-14 14:20

    I had an almost similar problem when working with unity (with protobuf-net and iOS), this helped me:

    Environment.SetEnvironmentVariable("MONO_REFLECTION_SERIALIZER", "yes");
    

    Credit: https://github.com/antonholmquist/easy-serializer-unity

    0 讨论(0)
  • 2021-01-14 14:27

    I grabbed the protobuf-net sources (v2 r470). Use of [ImmutableObject] was indeed one of the issues. I submitted a few minor patches to @MarcGravell via the protobuf-net issue list. I have updated my example at http://github.com/t9mike/ProtoBuf1 with this new assembly. Thanks everyone for the responses.

    0 讨论(0)
提交回复
热议问题