Class-dump, class-dump
Class-dump official website address: here
I downloaded the class-dump-3.5.dmg version here. Double-click the. dmg file and pull down the/usr/local/bin directory. In this way, you can use the class-dump command on the terminal.
Here I will demonstrate the built-in calculator of the dump system and export its header file.
The command is as follows:
Class-dump-H/Applications/Calculator. app-o/Users/Rio/Desktop/calculate \ heads
Explanation:
/Applications/Calculator. app is the path of the Calculator app
/Users/Rio/Desktop/calculate \ heads is the folder path for storing dump header files
class-dump 3.5 (64 bit)Usage: class-dump [options] <mach-o-file> where options are: -a show instance variable offsets -A show implementation addresses --arch <arch> choose a specific architecture from a universal binary (ppc, ppc64, i386, x86_64) -C <regex> only display classes matching regular expression -f <str> find string in method name -H generate header files in current directory, or directory specified with -o -I sort classes, categories, and protocols by inheritance (overrides -s) -o <dir> output directory used for -H -r recursively expand frameworks and fixed VM shared libraries -s sort classes and categories by name -S sort methods by name -t suppress header in output, for testing --list-arches list the arches in the file, then exit --sdk-ios specify iOS SDK version (will look in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS<version>.sdk --sdk-mac specify Mac OS X version (will look in /Developer/SDKs/MacOSX<version>.sdk --sdk-root specify the full SDK root path (or use --sdk-ios/--sdk-mac for a shortcut)
Run the command to view the dump file, as shown below:
Although class-dump is very useful, sometimes we find that class-dump fails to execute and cannot get the. h file we want, or the content of the. h file is encrypted ciphertext. The reason for this is that the class-dump object must be an unencrypted executable fileAll Apps downloaded from the App Store are signed and encrypted., The executable file is added with a "shell ". You can use AppCrackr to automatically crack the shell.
How to Use class-dump
Class-dump-x extracts hidden files from the private library
Class-dump
This is a command-line utility for examining the Objective-C runtime information stored in Mach-O files. it generates declarations for the classes, categories and protocols. this is the same information provided by using 'otool-ov ', but presented as normal Objective-C declarations, so it is much more compact and readable.
Why use class-dump?
It's a great tool for the curious. you can look at the design of closed source applications, frameworks, and bundles. watch the interfaces evolve between releases. experiment with private frameworks, or see what private goodies are hiding in the AppKit. learn about the plugin API lurking in Mail. app.
If you find class-dump useful, you can donate to help support its development. Thanks!
Download
Current version: 3.3.3 (Universal, 64 and 32 bit)
Requires Mac OS X 10.5 or later.
Class-dump-3.3.3.dmg
Class-dump-3.3.3.tar.gz
Class-dump-3.3.3.tar.bz2
Changes-News
Contact
You can email questions and bug reports to me at class-dump@codethecode.com, or nygard at gmail.com.
Usage
Class-dump 3.3.3 (64 bit)
Usage: class-dump [options] <mach-o-file>
Where options are:
-A show instance variable offsets
-A show implementation addresses
-- Arch <arch> choose a specific architecture from a universal binary (ppc, ppc7400, ppc64, i386, x86_64, etc .)
-C <regex> only display classes matching regular expression
-F <st ...... remaining full text>
How to Use div class multiple times, for example
Simply write the name of the style to be applied on the div,
<Style>
. Bg {color: red; font-size: 15px ;}
. Blue {color: blue; font-size: 15px ;}
</Style>
<Div class = "bg"> red font </div>
<Div class = "blue"> blue font </div>
<Div class = "bg"> red font </div>