Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jsonli

macrumors member
Original poster
Oct 26, 2008
42
0
Has anyone ever dumped headers from a cocoa library? (.a file generated from XCode?).

I've extracted the .a file and gotten all the .o files.

I then tried using class-dump (and variants) on the .o files, but they don't seem to work as they do on the object files in the Apple frameworks.

I get error messages stating there is no Objective-C runtime in the file. (Even though it's a cocoa library!?).

Any ideas, anyone?
 
If that doesn't work then link it into an app and then dump it. Can you run nm on the .o files?

Yeah, I did that, and it gives you a listing of the methods, but I don't have any idea of the parameters.

I'll try your suggestion though.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.