Skip to content
Quick Python script over otool to help spotting potentially unused methods in Objective-C Mach-O executable files
Branch: master
Clone or download
Latest commit 084a38e Aug 24, 2012
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.markdown
objc_cover.py

README.markdown

Say you have this Objective-C code:

- (void)notUsed {
	return;
}

- (void)actuallyUsed {
	return;
}

// ...

[self actuallyUsed];

Thanks to /usr/bin/otool, you can get clues about potentially unused methods, like this:

$ python objc_cover.py /Users/nst/Desktop/iCalReport 
# the following methods may be unreferenced
-[MyClass notUsed]

The idea was put first by "Luke the Hiesterman" on the Apple Objective-C list.

You can’t perform that action at this time.