How do I get headers??

Discussion in 'iOS Development' started by hyernado, Nov 29, 2009.

  1. hyernado

    hyernado New Member

    Joined:
    Apr 13, 2009
    Messages:
    127
    Likes Received:
    0
    Device:
    2G iPod touch
    Edit: NVM about UIKit; found solution, but I still need the Preferences.framework headers. Any help?

    I really would like to make a few MS plugins, as well as some PreferenceBundles, but how do I class-dump UIKit.framework or Preferences.framework when neither have executables inside to dump??

    Please Register or Log in to view images


    Thanks, Zapp.
  2. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    UIKit.framework has an executable in it to dump? C_Axis helped me do it last night.. OPEN the .framework.
  3. hyernado

    hyernado New Member

    Joined:
    Apr 13, 2009
    Messages:
    127
    Likes Received:
    0
    Device:
    2G iPod touch
    no it doesn't. And yes, I'm aware that UIKit.framework is a dir, not a file.
  4. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    You're right, i just wrote the headers myself, i forgot about that.
  5. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)
    install class-dump.

    Code:
    class-dump -H <executable>
    That will generate headers in the current directory.

    You can specify an output directory like so

    Code:
    class-dump -H <executable> -o ~/Desktop/classes
    The UIKit directory -
    Code:
    /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/System/Library/Frameworks/UIKit.framework/UIKit
    The Preferences -
    Code:
    /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.2.sdk/System/Library/PrivateFrameworks/Preferences.framework/Preferences
  6. hyernado

    hyernado New Member

    Joined:
    Apr 13, 2009
    Messages:
    127
    Likes Received:
    0
    Device:
    2G iPod touch
    Thanks, didn't know I had to use an Xcode installation. In which pkg in the iPhone sdk DMG are these in? I have a DMG downloaded, it would be more convienient to extract it, as I'm on win and my Xcode installation is on a VM.
    Thanks.
  7. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)
    You can install class-dump from Cydia on your device. run it in MobileTerminal or via ssh. UIKit can be found in /System/Library/Frameworks and Preferences in /System/Library/PrivateFrameworks (on your device).
  8. hyernado

    hyernado New Member

    Joined:
    Apr 13, 2009
    Messages:
    127
    Likes Received:
    0
    Device:
    2G iPod touch
    Anyone? ^
    ________|

Share This Page