[英]How debug the issue of Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffee1ba8578)
I encounter the Thread 1: EXC_BAD_ACCESS (code=2, address=0x7ffee1ba8578) error. 我遇到线程1:EXC_BAD_ACCESS(代码= 2,地址= 0x7ffee1ba8578)错误。
As I know this cause from abnormal object release. 据我所知,这是由于异常对象释放引起的。
But seem as stuck [MTLModel description]
infinite loop. 但是似乎卡住了[MTLModel description]
无限循环。
Even already add one exception breakpoint in project and enable Zombie Objects in Edit Scheme, the console still without any information and output when error occurs. 即使已经在项目中添加了一个异常断点并在“编辑方案”中启用了“僵尸对象”,当发生错误时,控制台仍然没有任何信息和输出。
Is there any idea or experience for debugging. 是否有调试的想法或经验。
Would you by any chance have a property in your model named description
? 您是否会在模型中有一个名为description
的属性? If so, please note that description
is reserved in Objective-C to generate a NSString description of an object. 如果是,请注意, description
在目标C保留以产生对象的一个的NSString描述。 You will probably need to name it "desc" or some other name and use the JSONKeyPathsByPropertyKey
to associate the "description" property of your JSON model to your "desc" property of your Objective-C model. 您可能需要将其命名为“ desc”或其他名称,然后使用JSONKeyPathsByPropertyKey
将JSON模型的“ description”属性与Objective-C模型的“ desc”属性相关联。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.