开发者

_NSZombie_NSKeyValueUndefinedGetter - What is this?

开发者 https://www.devze.com 2023-02-05 12:10 出处:网络
Hey everyone, I\'m getting a senseless error when I load an application I\'m writing for the first time.

Hey everyone,

I'm getting a senseless error when I load an application I'm writing for the first time.

Class _NSZombie_NSKeyValueUndefinedGetter is implemented in both ?? and ??. One of the two will be used. Which one is undefined.

Anyone's had this issue before? It happens only when NSZombies are enabled.

Thanks in advance to ever开发者_运维知识库yone.


I encountered the same problem with troubleshooting EXC_BAD_ACCESS and had hard time to find the setting with Xcode 4.2 (the latest one that comes with iOS5 SDK). Apple keeps on moving things and the settings are no longer where they used to be.

Fortunately, I've found it and it works for the device, not just Simulator. You need to open the Product menu in the Xcode, select Edit scheme and then choose the Diagnostics tab. There you have "Enable Zombie Objects". Once selected and run in debugger will point you to the double released object! Enjoy!

0

精彩评论

暂无评论...
验证码 换一张
取 消