问题描述
在我尝试用otool它不会分裂成不同的方法来拆解股票iOS应用程序(而不是应用程序商店的)。这只是一台庞大的部分。下面是我使用的命令:
结果 otool -TV theApp.app/theApp>〜/桌面/ output.txt的
结果
有没有办法让拆卸分成方式?
When I try to disassemble the stock iOS apps (not app store ones) with otool it isn't split into different methods. It's just one massive section. Here's the command I'm using:otool -tV theApp.app/theApp >~/Desktop/output.txt
Is there a way to get the disassembly split into methods?
推荐答案
没有,没有。这些应用已经被剥离,这意味着它们不包含在哪里函数开始或结束的信息。然而,由于Objective-C中是动态的,任何Objective-C的方法,将自己的名字和地址在Objective-C的节段。使用 otool -ov
您可以获取此信息,但如果你使用更容易跨preT它的,它提供的Objective-C头文件,将包括每种方法的地址,如果您使用 -A
选项。之后,你有地址,你可以通过你的文件,并将其手动分成的方法。
No, there isn't. Those applications have been stripped, which means they contain no information about where functions begin or end. However, since objective-c is dynamic, any objective-c methods will have their name and address in the objective-c segment. You can get this information using otool -ov
, but it is easier to interpret it if you use class-dump-z, which provides objective-c headers and will include the addresses of each method if you use the -A
option. After you have the addresses, you can go through your file and separate it into methods manually.
这篇关于拆开默认iOS应用与otool的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!