otool
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?
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.
本文地址:IT屋 » Disassemble default iOS apps with otool
在我尝试用otool它不会成不同的方法来拆解股票iOS应用程序(而不是应用程序商店的)。otool这只是一台庞大的部分。下面是我使用的命令:

结果 otool -TV theApp.app/theApp>〜/桌面/ output.txt的结果
有没有办法让拆卸分成方式?
解决方案
没有,没有。这些应用已经被剥离,这意味着它们不包含在哪里函数开始或结束的信息。然而,由于Objective-C中是动态的,任何Objective-C的方法,将自己的名字和地址在Objective-C的节段。使用 otool -ov 您可以获取此信息,但如果你使用更容易跨preT它的类转储-Z ,它提供的Objective-C头文件,将包括每种方法的地址,如果您使用 -A 选项。之后,你有地址,你可以通过你的文件,并将其手动分成的方法。
本文地址:IT屋 » 拆开默认iOS应用与otool
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-42604-1.html
和我家过的