Skip to content

Json flag for class-dump or macho info --objc #826

Description

@Servanto

Is your feature request related to a problem? Please describe.

I'm currently trying to get the objective-c class information of an apps binary into a parse able format.
There are 2 functions that I know of which output these information, which are macho info --objc and class-dump, but they output it as just a string. (seems also to be the exact same info)
macho info has a json flag, but that is not working in combination with the objc flag.

Describe the solution you'd like

Would it be possible to implement a working json flag in combination with one of those functions?
Something that makes the objective c output at least a little better parse able.

I'm not sure how much effort that is, and how the data is gathered by ipsw initially, so feel free to squander my hopes to not write endless regex expressions.

And if there is already a way to get these objective-c class information through some other methods, I'm all ears. But going through the wiki, and asking multiple chat AIs (including the on from deepwiki), made it clear that there is no way currently to do that.

Describe alternatives you've considered

I also tried to use class-dump --headers and reading these header files with (lib)clang, but that tool has some issues with swift variables I could not resolve.

Search

  • I did search for other open and closed issues before opening this

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions