unity IOS xml序列化真机运行JIT问题
来源:互联网 发布:gps端口修改器 编辑:程序博客网 时间:2024/05/20 03:39
问题描述:
unity输出IOS真机调试,XML序列化出错,报错类似如下:
ExecutionEngineException: Attempting to JIT compile method 'System.Reflection.MonoProperty:GetterAdapterFrame<System.Collections.Generic.List'1<string>, int> (System.Reflection.MonoProperty/Getter'2<System.Collections.Generic.List'1<string>, int>,object) while running with --aot-only.
at System.Reflection.MonoProperty.GetValue (System.Object obj, System.Object[] index) [0x00000] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteListContent (System.Object container, System.Xml.Serialization.TypeData listType, System.Xml.Serialization.ListMap map, System.Object ob, System.Text.StringBuilder targetString) [0x00000] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteMemberElement (System.Xml.Serialization.XmlTypeMapElementInfo elem, System.Object memberValue) [0x00000] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteElementMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList) [0x00000] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteObjectElementElements (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob) [0x00000] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteObjectElement (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob, System.String element, System.String namesp) [0x00000] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteObject (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob, System.String element, System.String namesp, Boolean isNullable, Boolean needType, Boolean writeWrappingElem) [0x00000] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializationWriterInterpreter.WriteRoot (System.Object ob) [0x00000] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializer.Serialize (System.Object o, System.Xml.Serialization.XmlSerializationWriter writer) [0x00000] in <filename unknown>:0 at System.Xml.Serialization.XmlSerializer.Serialize (System.Xml.XmlWriter writer, System.Object o, System.Xml.Serialization.XmlSerializerNamespaces namespaces) [0x00000] in <filename unknown>:0
查阅资料地址
http://wiki.unity3d.com/index.php?title=Saving_and_Loading_Data:_XmlSerializer
问题解决:
iOS Devices
A NullReferenceException will be raised if you're using List<T> in your MonsterContainer class, use an array instead. Similarly the same exception is raised if you're using get and set to implement properties in the class you're trying to serialize.
在IOS上不能使用List<T>的类型,需要使用数组。在XML序列化属性的get、set方法中,也不能使用List<T>。
- unity IOS xml序列化真机运行JIT问题
- ios真机运行
- ios 项目真机运行
- iOS开发-解决demo真机运行不了问题
- IOS开发-解决demo真机运行不了问题
- 如何在 iOS 真机运行 Appium
- IOS真机运行环境操作步骤
- 如何在 iOS 真机运行 Appium
- React Native真机运行 ios
- iOS-真机运行错误整理
- react native 真机运行问题
- 真机运行时问题
- 解决Android中xml文件Graphical Layout显示和真机运行显示不相同问题
- 我在使用Unity 发布IOS真机过程时遇到的关于JIT的问题列表
- iOS真机运行,出现process launch failed: Security 错误
- Appium的ios环境搭建、真机运行app
- iOS_解决demo真机运行不了问题
- archive包真机运行崩溃问题一则
- 算法八:Bellman-Ford算法及优化
- 去掉listview的分割线和分割线的颜色,高度的设置
- poj 3046 数蚂蚁 dp
- VS 演进
- 实现iphone风格的对话框
- unity IOS xml序列化真机运行JIT问题
- pthread_create()
- addStretch 布局平均分配空间
- 如何提高程序效率
- linux SWIG C++转换为JAVA
- 图像相似度算法--SIFT算法详解
- static类型指针使用中的问题(AVPicture 类型内存释放)
- Double-Buffer双缓冲——游戏编程模式(下)
- Leetcode47: Palindrome Linked List