PDA

View Full Version : Header dump from Cocoa library?




jsonli
Nov 13, 2009, 04:48 PM
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?



PhoneyDeveloper
Nov 15, 2009, 08:16 PM
If that doesn't work then link it into an app and then dump it. Can you run nm on the .o files?

jsonli
Nov 15, 2009, 11:20 PM
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.