{"action":"closed","issue":{"url":"https://api.github.com/repos/mgravell/protobuf-net/issues/400","repository_url":"https://api.github.com/repos/mgravell/protobuf-net","labels_url":"https://api.github.com/repos/mgravell/protobuf-net/issues/400/labels{/name}","comments_url":"https://api.github.com/repos/mgravell/protobuf-net/issues/400/comments","events_url":"https://api.github.com/repos/mgravell/protobuf-net/issues/400/events","html_url":"https://github.com/mgravell/protobuf-net/issues/400","id":331413424,"node_id":"MDU6SXNzdWUzMzE0MTM0MjQ=","number":400,"title":"With Unity 5.4.0f3 and protobuf-net in iOS  release build error","user":{"login":"duhaibo0404","id":8650648,"node_id":"MDQ6VXNlcjg2NTA2NDg=","avatar_url":"https://avatars3.githubusercontent.com/u/8650648?v=4","gravatar_id":"","url":"https://api.github.com/users/duhaibo0404","html_url":"https://github.com/duhaibo0404","followers_url":"https://api.github.com/users/duhaibo0404/followers","following_url":"https://api.github.com/users/duhaibo0404/following{/other_user}","gists_url":"https://api.github.com/users/duhaibo0404/gists{/gist_id}","starred_url":"https://api.github.com/users/duhaibo0404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duhaibo0404/subscriptions","organizations_url":"https://api.github.com/users/duhaibo0404/orgs","repos_url":"https://api.github.com/users/duhaibo0404/repos","events_url":"https://api.github.com/users/duhaibo0404/events{/privacy}","received_events_url":"https://api.github.com/users/duhaibo0404/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-12T02:20:23Z","updated_at":"2018-07-14T10:11:28Z","closed_at":"2018-07-14T10:11:28Z","author_association":"NONE","body":"hello all：\r\ni am run unity 5.4.0.f3 and use protobuf-net ,  unity debug mode  export is fine, release export ios project has this issue, any help?\r\n\r\n`NotSupportedException: /Users/builduser/buildslave/unity/build/Tools/il2cpp/il2cpp/libil2cpp/icalls/mscorlib/System.Reflection.Emit/DynamicMethod.cpp(21) : Unsupported internal call for IL2CPP:DynamicMethod::create_dynamic_method - System.Reflection.Emit is not supported.\r\n  at System.Reflection.Emit.DynamicMethod.CreateDynMethod () [0x00000] in <filename unknown>:0 \r\n  at System.Reflection.Emit.DynamicMethod.CreateDelegate (System.Type delegateType) [0x00000] in <filename unknown>:0 \r\n  at ProtoBuf.Compiler.CompilerContext.BuildSerializer (IProtoSerializer head, ProtoBuf.Meta.TypeModel model) [0x00000] in <filename unknown>:0 \r\n  at ProtoBuf.Serializers.CompiledSerializer..ctor (IProtoTypeSerializer head, ProtoBuf.Meta.TypeModel model) [0x00000] in <filename unknown>:0 \r\n  at ProtoBuf.Serializers.CompiledSerializer.Wrap (IProtoTypeSerializer head, ProtoBuf.Meta.TypeModel model) [0x00000] in <filename unknown>:0 \r\n  at ProtoBuf.Meta.MetaType.get_Serializer () [0x00000] in <filename unknown>:0 \r\n  at ProtoBuf.Meta.RuntimeTypeModel.Deserialize (Int32 key, System.Object value, ProtoBuf.ProtoReader source) [0x00000] in <filename unknown>:0 \r\n  at ProtoBuf.Meta.TypeModel.Deserialize (System.IO.Stream source, System.Object value, System.Type type, ProtoBuf.SerializationContext context) [0x00000] in <filename unknown>:0 \r\n  at ProtoBuf.Serializer.Deserialize[T] (System.IO.Stream source) [0x00000] in <filename unknown>:0 \r\n  at GameCore.XNetLogin._GetCurMsgInfoT[T] (System.Byte[] buffer, Int32 nSize, Int32 nOffset) [0x00000] in <filename unknown>:0 \r\n  at GameCore.XNetLogin._RecvGWEnterOKNTF (System.Byte[] buffer, Int32 nSize, Int32 nOffset) [0x00000] in <filename unknown>:0 \r\n  at XNetCore.XNetHandler.OnNetPacket (XNetCore.XNetPacket pack) [0x00000] in <filename unknown>:0 \r\n  at XNetCore.XNetDispatcher.DoDispatch (XNetCore.XNetSystem netSystem) [0x00000] in <filename unknown>:0 \r\n  at GameCore.XNetManager.OnUpdate (Int32 nTime, Int32 nDelta) [0x00000] in <filename unknown>:0 \r\n  at GameCore.XGameRoot._OnUpdate (Int32 nGameTime, Int32 nScaledDelta, Int32 nUnscaledTime, Int32 nUnscaledDelta) [0x00000] in <filename unknown>:0 \r\n  at XRootProxy.Update () [0x00000] in <filename unknown>:0 \r\nRethrow as InvalidOperationException: It was not possible to prepare a serializer for: cs.S2C_Login\r\n  at ProtoBuf.Compiler.CompilerContext.BuildSerializer (IProtoSerializer head, ProtoBuf.Meta.TypeModel model) [0x00000] in <filename unknown>:0 \r\n  at ProtoBuf.Serializers.CompiledSerializer..ctor (IProtoTypeSerializer head, ProtoBuf.Meta.TypeModel model) [0x00000] in <filename unknown>:0 \r\n  at ProtoBuf.Serializers.CompiledSerializer.Wrap (IProtoTypeSerializer head, ProtoBuf.Meta.TypeModel model) [0x00000] in <filename unknown>:0 \r\n  at ProtoBuf.Meta.MetaType.get_Serializer () [0x00000] in <filename unknown>:0 \r\n  at ProtoBuf.Meta.RuntimeTypeModel.Deserialize (Int32 key, System.Object value, ProtoBuf.ProtoReader source) [0x00000] in <filename unknown>:0 \r\n  at ProtoBuf.Meta.TypeModel.Deserialize (System.IO.Stream source, System.Object value, System.Type type, ProtoBuf.SerializationContext context) [0x00000] in <filename unknown>:0 \r\n  at ProtoBuf.Serializer.Deserialize[T] (System.IO.Stream source) [0x00000] in <filename unknown>:0 \r\n  at GameCore.XNetLogin._GetCurMsgInfoT[T] (System.Byte[] buffer, Int32 nSize, Int32 nOffset) [0x00000] in <filename unknown>:0 \r\n  at GameCore.XNetLogin._RecvGWEnterOKNTF (System.Byte[] buffer, Int32 nSize, Int32 nOffset) [0x00000] in <filename unknown>:0 \r\n  at XNetCore.XNetHandler.OnNetPacket (XNetCore.XNetPacket pack) [0x00000] in <filename unknown>:0 \r\n  at XNetCore.XNetDispatcher.DoDispatch (XNetCore.XNetSystem netSystem) [0x00000] in <filename unknown>:0 \r\n  at GameCore.XNetManager.OnUpdate (Int32 nTime, Int32 nDelta) [0x00000] in <filename unknown>:0 \r\n  at GameCore.XGameRoot._OnUpdate (Int32 nGameTime, Int32 nScaledDelta, Int32 nUnscaledTime, Int32 nUnscaledDelta) [0x00000] in <filename unknown>:0 \r\n  at XRootProxy.Update () [0x00000] in <filename unknown>:0 \r\n \r\n(Filename: currently not available on il2cpp Line: -1)`"}}
{"actor":{"display_login":"duhaibo0404"}}