官方下載地址
下載地址
class-dump
源碼github地址
簡(jiǎn)介
class-dump is a command-line utility for examining the Objective-C segment of 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.
這是class-dump的官方解釋。class-dump,是可以把Objective-C運(yùn)行時(shí)的聲明的信息導(dǎo)出來的工具。其實(shí)就是可以導(dǎo)出.h文件。用class-dump可以把未經(jīng)加密的app的頭文件導(dǎo)出來。
安裝
- 1 .打開Terminal
- 2.mkdir ~/bin (在跟目錄創(chuàng)建一個(gè)bin目錄)
- 3.打開下載下來的class-dump dmg文件
解壓開class-dump.dmg的文件 - 4.open ~/bin/
- 5.將class-dump 文件拖入到打開的文件夾里面(你創(chuàng)建的bin文件夾里面)
- 6.chmod +x ~/bin/class-dump
- 7.vim ~/.bash_profile (配置環(huán)境變量)
- 8.在文本最后面添加一行 export PATH=$HOME/bin/:$PATH
- 9.esc鍵,wq保存。
-10.source ~/. bash_profile(環(huán)境變量生效)
-11.class-dump 顯示如下說明安裝成功

class-dump 安裝成功截圖
