我已经从 http://www.codethecode.com/projects/class-dump/ 下载了类转储。 我用终端打开类转储,但结果如下:
Last login: Fri Apr 22 16:46:57 on ttys000
yu-brooks-imac:~ yubrook$ /Users/yubrook/Desktop/class-dump ; exit;
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, 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-root specify the SDK root path (full path, or 4.1, 4.0, 3.2, 10.6, 10.5, 3.1.3, 3.1.2, 3.1)
logout
[Process completed]
我不明白如何运行类转储。请帮助我。
我在命令行上点击类转储,结果是:
yu-brooks-imac:桌面 yubrook$ 类转储
-bash:类转储:找不到命令
通过手动安装类转储并使用此Steve Nygard下载类转储。然后将类转储文件复制到以下位置“/usr/local/bin”。在此之后一切都会正常工作。
这是因为操作系统无法识别当前文件夹路径。 导航到您已下载代码的当前文件夹。运行如下:
./class-dump