How to run iPhone program with Zombies instrument?

前端 未结 3 2086
无人共我
无人共我 2020-12-04 10:21

I\'m running XCode 3.2 on Snow Leopard and I\'m trying to run the Zombies instrument against my app but the selection is grayed out and I don\'t know why. I know about the N

3条回答
  •  北海茫月
    2020-12-04 10:45

    Are you sure you're setting it in the right place? I mean, it is a runtime tuneable, not compile time. Just be sure you're setting it in the right place and try again.

    Go to Project -> Edit Active Executable
    Click Arguments
    Click + in the "Variables to be set in the environment" section
    Enter NSZombieEnabled in the Name column and YES in the Value column.
    Make sure the checkmark for the NSZombieEnabled entry is checked.

提交回复
热议问题