xcode 如何使用otool

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5946756/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 03:56:27  来源:igfitidea点击:

how to use otool

iphonexcodeipadotool

提问by AMH

apple suggested me to use "strings" or "otool" to dect the private api (isinf) in my code , I am totally newbie so any help how to use those tools

苹果建议我使用“字符串”或“otool”来检测我的代码中的私有 api (isinf),我完全是新手,所以任何关于如何使用这些工具的帮助

采纳答案by Alex Nazarsky

Open Terminal ( Ctrl + Space -> Type 'Terminal')..

打开终端(Ctrl + Space -> 输入“终端”)。

and print example:

并打印示例:

otool -MVv yourlib.a

for help:

求助:

otool --help

回答by vidstige

I use nmto inspect my binaries. Usage can't be simpler:

nm用来检查我的二进制文件。用法再简单不过了:

 nm <filename>

It will list some weird memory-address or whatever, then a visibility character and lastly the symbol. T is public, but check out the man page of nmto find out more about this.

它会列出一些奇怪的内存地址或其他什么,然后是可见性字符,最后是符号。T 是公开的,但请查看 的手册页nm以了解更多信息。

Press Ctrl+spaceto open up the terminal.

Ctrl+space打开终端。