Yes! Who stated zombies aren’t real, If you are an iOS developer you’d be quite conscious of them. No? Take it easy let’s explore a little.
Sooner or later of your time, we unknowingly or knowingly implants them within our code and also the worse occurs when we’d to kill them.
Zombies aren’t anything however the objects that are half dead, or half released or retained. Well in the following paragraphs we’ll not just likely to just trace them lower but additionally get it done inside a more simplified way.
Maybe you have faced trouble in tracking a deallocated object?
Maybe you have faced an accident which read as “message delivered to deallocated instance” ?
True!!! Then this information is for you personally, let’s begin .
At occasions, the binary language provides for us a tough hit. Are you able to guess the category name out of this “0x10010d681” ? Possibly not. Assume this can be a deallocated object, now difficulty level elevated even harder. Though Xcode provide us an excellent tool to know in addition to trace them through “Instruments”. Instruments is a superb tool where we’ve a lot of profiling templates from “Allocations” to “Leaks” to “Zombies”. However nowadays we won’t explore Instrument rather goes with a more plainer method to find the memory good reputation for the zombie object.
To understand is definitely better, regardless of what the solution may be
First we’ll visit edit the schemes from the project: