Need help with PLeakSniffer?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

495 Stars 62 Forks MIT License 9 Commits 6 Opened issues


Detect memory leaks for your iOS project automatically.

Services available


Need anything else?

Contributors list

# 92,136
8 commits


We are building controllers most of the time, memory leaks happen within controllers. Retain cycle stops controller from being released, UIView objects within controllers somehow get held by other objects, PLeakSniffer shows its value in such circumstances, it provides suggestions, but guarantees nothing.

It is your duty to set a breakpoint in the suspicous object's dealloc, and reveal the only truth.


PLeakSniffer can help detect memory leaks, including UIViewController, UIView, and all custom Properties. It provides suggestions with suspicious objects, prints a log message in the console like:

Detect Possible Controller Leak: %@

Detect Possible Leak: %@


Plan A:

clone this repo, copy classes under PLeakSniffer folder into your project.

Plan B:

PLeakSniffer is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "PLeakSniffer"

How to use

[[PLeakSniffer sharedInstance] installLeakSniffer];

make sure you embed PLeakSniffer with debug macro, do not bring it to online users.


PLeakSniffer is available under the MIT license. See the LICENSE file for more info.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.