mddios / objc_cover

Quick Python script over otool to help spotting potentially unused methods in Objective-C Mach-O executable files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Quick Python script over otool to help spotting potentially unused methods in Objective-C Mach-O executable files


Languages

Language:Python 100.0%