Disassemble default iOS apps with otool

泪湿孤枕 提交于 2019-12-03 08:46:02

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/7458544/disassemble-default-ios-apps-with-otool

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!