Questions tagged [nszombie]

NSZombie is an Apple OS-specific (OSX and iOS) tool for debugging issues with reference-counting.

NSZombie is an Apple OS-specific (OSX and iOS) tool for debugging issues with reference-counted objects. In particular, it helps you track down objects that are over-released by recording a history of all -retain and -release messages sent to all objects created during execution.

When NSZombie is enabled, unbalanced -retain and -release messages cause the application to immediately halt and break into the debugger. This allows you to examine the problematic message to determine if there is an extraneous -release (or -autorelease), or a missing -retain.

Resources

223 questions
460
votes
7 answers

How do I set up NSZombieEnabled in Xcode 4?

How do I set up NSZombieEnabled and CFZombieLevel for my executable in Xcode 4?
Chetan
  • 46,743
  • 31
  • 106
  • 145
310
votes
15 answers

How to enable NSZombie in Xcode?

I have an app that is crashing with no error tracing. I can see part of what is going on if I debug, but can't figure out which object is "zombie-ing". Does anybody know how to enable NSZombie in Xcode 4?
jason
  • 5,391
  • 6
  • 23
  • 26
103
votes
4 answers

What is NSZombie?

I've seen suggestions saying to set NSZombieEnabled to true while debugging. What is NSZombie? Is it a framework? A setting?
Moshe
  • 57,511
  • 78
  • 272
  • 425
46
votes
2 answers

In App Purchase Crashes on [[SKPaymentQueue defaultQueue] addPayment:payment]

My In-App-Purchases work. I present a ModalView with a "Buy" UIButton. You click the button and the In App Purchase goes through the process. You can even do it several times in a row. The problem occurs if you open the Modal View, then close the…
Chris
  • 5,485
  • 15
  • 68
  • 130
15
votes
8 answers

NSZombieEnabled does not work

When I set NSZombieEnabled = Yes nothing is written to the console. How can I fix this? Or can you advise me any other tools for an EXC_BAD_ACCESS?
onur taskin
  • 929
  • 1
  • 14
  • 33
14
votes
3 answers

How to debug EXC_BAD_ACCESS that occurs only on release target for an iPhone app?

I'm developing an iPhone application. I have an EXC_BAD_ACCESS that occurs only in the release target; when I build the debug target the exception does not occur. However, when I set the NSZombieEnabled environment variable to YES, I still get the…
Bobby Moretti
  • 717
  • 1
  • 6
  • 17
13
votes
1 answer

Xcode Instruments - Zombies - what am I looking for?

When I run Project/Profile in Xcode and choose "Zombies", the app runs in the simulator with "NSZombie detection" enabled. But what should I be looking for to tell me that there is a problem? All I see is the Allocation instrument running and the…
soleil
  • 12,133
  • 33
  • 112
  • 183
11
votes
1 answer

Enable and Debug Zombie objects in iOS using Xcode 5.1.1

I have an iOS(7.1) app which crashes due to EXC_BAD_ACCESS. If I am not wrong, this happens due to the use of an object which is already de-allocated. After a bit of searching, I found out that enabling Zombie objects help to pin point the line of…
Sibir
  • 313
  • 2
  • 6
  • 20
9
votes
3 answers

Obscure NSZombie console log

I tried searching on google, and got literally no results when trying to figure out what this means. My console is logging: objc[17048]: Class _NSZombie_GEOLatLng is implemented in both ?? and ??. One of the two will be used. Which one is…
Mason
  • 6,893
  • 15
  • 71
  • 115
9
votes
1 answer

How to turn off NSZombieEnabled in Xcode 4

I have just migrated to Xcode 4 and i had zombie activated in Xcode 3 for my app. I used the following method: Go to Project -> Edit Active Executable Click Arguments Click + in the "Variables to be set in the environment" section Enter…
PeterK
  • 4,243
  • 4
  • 44
  • 74
9
votes
4 answers

THREAD 1: EXC_BREAKPOINT CALayer removeAllAnimations message sent to deallocated

There are a lot of question with the same title but somehow I felt that every case is different as my problem is still not resolved and I've no clue why and also there are not enough solutions for Swift. So here is my scenerio: I've used CarbonKit…
Chaudhry Talha
  • 7,231
  • 11
  • 67
  • 116
9
votes
1 answer

[CFString release]: message sent to deallocated instance

I've been struggling with a strange problem for two days now. I went through every related question on SO but none solved the issue. I'm working on Xcode5. I'm using ARC and CoreData. On iOS7 (simulator): `[CFString release]: message sent to…
Francesco
  • 503
  • 5
  • 11
9
votes
0 answers

How to use NSzombie in xcode?

Possible Duplicate: How to enable NSZombie on Xcode 4? My application is crashing a lot! How do I find the error through NSZombie? Could someone give me step by step instructions to use NSZombie or the Valgrind tool to find memory errors,…
Rahul Vyas
  • 28,260
  • 49
  • 182
  • 256
9
votes
2 answers

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

I have this message while debugging my app: Class NSZombie_GEOTileKeyWrapper is implemented in both ?? and ??. One of the two will be used. Which one is undefined. Do you know what is this? And how to fix it?
Tuyen Nguyen
  • 4,389
  • 7
  • 51
  • 77
8
votes
3 answers

Overrelease issue with block-captured objects; retain count jumps straight from +2 to 0!

I'm confused by an occasional crash that I'm seeing, which, according to the Zombies instrument, is caused by the over-release of some dictionary values. When I look at the object history for one of these overreleased objects in Instruments, I see…
1
2 3
14 15