Class-dump is an easy-to-use objective-c anti-compile analysis tool that extracts class definitions from objective-c compiled binaries in the form of objective-c header files.
Class-dump is an open source tool, the official website address is: http://stevenygard.com/projects/class-dump/
the use parameters are :
Class-dump 3.5 (+ bit) usage:class-dump [options] <mach-o-file> where options is:-A show Inst ance variable offsets-a Show implementation addresses--arch <arch> choose A specific AR Chitecture from a Universal binary (PPC, PPC64, i386, x86_64)-C <regex> only display classes matching RE Gular expression-f <str> Find string in method Name-h generate headers files in cur Rent directory, or directory specified With-o-I sort classes, categories, and protocols by Inheritanc E (overrides-s)-o <dir> output directory used For-h-R recursively expand Framewo Rks and fixed VM shared libraries-s sort classes and categories by Name-s sort met Hods by name-t Suppress header in output, for testing--list-arches list The Arches in the FIL E, then Exit--SDK-ios Specify iOS SDK version (would look in/developer/platforms/iphoneos.platform/developer/sdks/iphoneos<version >.SDK--sdk-mac Specify Mac OS X version (would look IN/DEVELOPER/SDKS/MACOSX<VERSION>.SDK--s Dk-root Specify the full SDK root path (or use--sdk-ios/--sdk-mac for a shortcut)
Examples of use:
Add the Class-dump tool in the current directory, the file to be analyzed is Myapp.app, and in the current directory, to place the exported header file in the Exportheader directory under the current directory, the command is
./class-dump-h Myapp.app-o./exportheader
Decompile objective-c using the Class-dump tool