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

蓝咒 提交于 2019-12-01 08:28:35

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!