Xcode Instruments - Zombies - what am I looking fo

2019-03-09 17:31发布

问题:

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 statistics below. Where will it actually show me that a Zombie was detected?

回答1:

You will get the leak above the object allocation bar. Check this image;

For a reference, check this video