views:

104

answers:

1

Sometimes I set NSZombieEnabled environment argument to YES for debugging.

This time I forgot to turn off the option, and submitted my application to App Store.

I suppose this option is just an environment option, so and does not affect to submitted application.

Am I correct?

+2  A: 

Depends on how you set it. It is possible to toggle at runtime.

If you have just set it in the environment in Xcode, then -- no -- it won't be set when run on a device outside of Xcode.

(Note that zombie detection enabled uses a ton of memory because it effectively causes no object to be deallocated, just marked as "should have been deallocated")

bbum
Thank you for your answer.Yes, I set it with Xcode, like this screen capture. http://www.tomwhitson.co.uk/blog/2009/04/debugging-with-nszombiesenabled/
tokentoken
You may want to read this post as well: http://stackoverflow.com/questions/1622079/break-on-exc-bad-access-in-xcode/1622091#1622091
iWasRobbed
Where did you get that info bbum?
beOn
From the source.
bbum
Do you have a link to the source?
beOn
It appears this is correct. I've tested by setting it in the environment in XCode and displaying an alert on startup if it's set. The alert displays in the simulator when built for any configuration, but never displays on the device. It would be nice to see some documentation that explains how this works, though.
chrispix