Decompile objective-c using the Class-dump tool

Source: Internet
Author: User

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 &GT;.SDK--sdk-mac Specify Mac OS X version (would look IN/DEVELOPER/SDKS/MACOSX&LT;VERSION&GT;.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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.