Header dump from Cocoa library?

Discussion in 'iOS Programming' started by jsonli, Nov 13, 2009.

  1. macrumors member

    Oct 26, 2008
    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?
  2. macrumors 68030


    Sep 2, 2008
    If that doesn't work then link it into an app and then dump it. Can you run nm on the .o files?
  3. thread starter macrumors member

    Oct 26, 2008
    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.

Share This Page