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?
To add some clarity to this answer:
I just ran a test. I inserted this code into my app at startup:
I then configured XCode as per the image below.
I launched my app on the device in the debugger. As expected, it crashed with an assertion failure. I then disconnected the debugger and launched the application normally on the device. No crash.
Thus, provided you configure NSZombieEnabled in XCode in the manner below, it looks like you are OK submitting to app store.