-bash:类转储:找不到命令

发布于 2024-11-02 13:36:45 字数 1631 浏览 1 评论 0原文

我已经从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

盛夏尉蓝 2024-11-09 13:36:45

通过手动安装类转储并使用此 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.

疯了 2024-11-09 13:36:45

这是因为操作系统无法识别当前文件夹路径。
导航到您已下载代码的当前文件夹。运行如下:

./class-dump

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:

./class-dump
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文