I’m using ARC on my iPhone app and I’m trying to catch a bug that gives me the following output (with NSZombieEnabled, MallocStackLogging and guard malloc):
*** -[MyCustomClass retain]: message sent to deallocated instance 0x534e00
How can I track a retain count using ARC? What do I do using LLDB console with the instance 0x534e00 (of course any other instance that will appear) in order to find the deallocated instance?
For the record: I’m not using any retain anywhere in my code.
Thank you!
It doesn’t mean that YOU are explicitly writing
[MyCustomClass retain]. The system is doing that for you. You should use Zombies and Instruments and try to track the problem. At least you know that the problem is withMyCustomClass, which narrows things.