-bash:类转储:找不到命令
我已经从 http://www.codethecode.com/projects/class 下载了类转储-转储/。 我用终端打开类转储,但结果如下:
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:类转储:找不到命令
I have downloaded the class-dump from http://www.codethecode.com/projects/class-dump/.
And I open class-dump with Terminal,but the result is following:
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]
I don't understand how to run the class-dump. Please help me.
I tap the class-dump on the command line,the result is:
yu-brooks-imac:Desktop yubrook$ class-dump
-bash: class-dump: command not found
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通过手动安装类转储并使用此 Steve Nygard 下载类转储。然后将类转储文件复制到以下位置“/usr/local/bin”。在此之后一切都会正常进行。
By installing class-dump manually and downloading the class-dump in using this Steve Nygard. Then copy the class-dump file to the following location "/usr/local/bin". after this everything will work fine.
这是因为操作系统无法识别当前文件夹路径。
导航到您已下载代码的当前文件夹。运行如下:
This is because the operating system does not recognize the current folder path.
Navigate to the current folder that you have downloaded the code. Run as follows: