Is it already done?
Not that I knew.
Is there an open source library that would provide me with Fundamental Tools Do I need to extract this information?
At the core of class-dump is libMachObjC , which does what you want, that is, it parses all classes / methods / ivars and much more, the API is very clean, it should be very easy to use.
If you have experience with this, am I trying to execute a doable?
Unfortunately, no, because some classes do not declare a real class, but use id . For example, here is information that can be extracted from a UIKit class reset:
@interface UITableView : UIScrollView <NSCoding> { int _style; id <UITableViewDataSource> _dataSource; id _rowData; ...
Type _rowData ivar id , but if you check at runtime, you will see that _rowData is an instance of the UITableViewRowData class. This information is missing from the Mach-O binary, so you cannot find the relationship between UITableView and UITableViewRowData . The same applies to method parameters.
0xced source share