Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-22-2009, 11:47 AM   #1 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 94
Default Trouble setting NSZombieEnabled

I'm trying to set this for my debug target but the setting won't take - bad accesses don't log to the console and getenv("NSZombieEnabled") returns NULL. Here's a screen grab of my build settings:


Any ideas what could be going on here?
yezaev is offline   Reply With Quote
Old 01-22-2009, 03:04 PM   #2 (permalink)
Registered Member
 
RickMaddy's Avatar
 
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,122
Default

The problem is that you are setting it in the wrong place. It's not a compile time setting, it's a runtime setting. Here are the instructions from the iPhone Development Guide:

Quote:
To activate the NSZombieEnabled facility in your application:

Choose Project > Edit Active Executable to open the executable Info window.
Click Arguments.
Click the add (+) button in the “Variables to be set in the environment” section.
Enter NSZombieEnabled in the Name column and YES in the Value column.
Make sure that the checkmark for the NSZombieEnabled entry is selected.
RickMaddy is offline   Reply With Quote
Old 01-22-2009, 03:09 PM   #3 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,028
Default

Does this make zombies come out of my iPhone?
scotopia is offline   Reply With Quote
Old 01-22-2009, 03:17 PM   #4 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 94
Default

Quote:
Originally Posted by RickMaddy View Post
The problem is that you are setting it in the wrong place. It's not a compile time setting, it's a runtime setting. Here are the instructions from the iPhone Development Guide:
Oh, excellent! thanks so much.
yezaev is offline   Reply With Quote
Old 01-22-2009, 03:41 PM   #5 (permalink)
Registered Member
 
RickMaddy's Avatar
 
Join Date: Oct 2008
Location: Denver, CO
Posts: 2,122
Default

Quote:
Originally Posted by scotopia View Post
Does this make zombies come out of my iPhone?
Braaaiiins Braaaiiins
RickMaddy is offline   Reply With Quote
Old 01-22-2009, 04:40 PM   #6 (permalink)
Registered Member
 
scotopia's Avatar
 
Join Date: Oct 2008
Posts: 2,028
Default

Lol; good, I was beginning to think that my continued attempts at humor on this forum were going unnoticed
scotopia is offline   Reply With Quote
Reply

Bookmarks

Tags
debugging, nszombieenabled, xcode

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 468
12 members and 456 guests
dana0550, dapis, darbsllim, Domele, dre, EdwardMichel, Harolano, HowEver, ilmman, lbert, marshusensei, Objective Zero
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 157,851
Threads: 88,914
Posts: 379,296
Top Poster: BrianSlick (7,072)
Welcome to our newest member, darbsllim
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:17 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0