Otx disassembler6/25/2023 You might already be familiar with otool, a command-line utility that's bundled with OS X. OK, you've got your class declarations, but you want to look at the code itself, right? Another favorite tool is otx, which you can find here. The workaround here is simply to use the lipo or ditto tools to create a single-architecture executable that class-dump will then accept. The workaround is simply to pipe class-dump's output to a file, separating the garbage from the class-declarations you want to see.įinally, class-dump can get confused by certain "fat" binaries, especially recent ones that contain 64-bit executables. The next problem is that class-dump can get very confused if the executable contains any references to C++ classes, spewing out all sorts of junk to stderr. The latest version of class-dump is 3.1.2. To fix that, there's a variant of class-dump available called class-dump-x. First, you need to be aware that class-dump can have problems with Objective-C 2.0 files. ![]() This information alone is often enough to get you started with an undocumented API.īut class-dump is not without its wrinkles. ![]() You can feed an executable to class-dump, and it will print out all the Objective-C class declarations contained within the file. My number-one favorite tool is class-dump, a command-line utility written originally by Steve Nygard. I thought it would be worth taking some time out from documenting undocumented APIs to show you how easy it is to do the same thing for yourself. Mac Secrets A number of folks have asked me what tools and techniques I use to reverse engineer Cocoa executables.
0 Comments
Leave a Reply. |