How do I class-dump-z from mobile terminal (iPhone SDK headers)?

Discussion in 'iOS Development' started by whocaresit, Dec 31, 2009.

  1. whocaresit

    whocaresit New Member

    Joined:
    Mar 11, 2009
    Messages:
    48
    Likes Received:
    0
    How do I class-dump from mobile terminal (iPhone SDK headers)?

    How do I Class-dump all the headers out of all extractable frameworks?

    Like this?


    Help?

    (I already have class-dump copied to bin directory and seems to run correctly. I donot know what arguments to pass to this command)
  2. Axis

    Axis Super Moderator Staff Member

    Joined:
    Dec 2, 2007
    Messages:
    6,288
    Likes Received:
    133
    Device:
    iPhone 4S (White)
    For example:

    Code:
    mkdir -p /tmp/Classes/SpringBoard
    class-dump -H /System/Library/CoreServices/SpringBoard.app/SpringBoard -o /tmp/Classes/SpringBoard
  3. whocaresit

    whocaresit New Member

    Joined:
    Mar 11, 2009
    Messages:
    48
    Likes Received:
    0
    I dont want springboard headers. I want the sdk headers.

    I am trying this script from mobile terminal,
    Code:
    #/bin/bash
    for FRAMEWORKS in Frameworks PrivateFrameworks; do
    frameworklib=/System/Library/"${FRAMEWORKS}"
    for frameworkpath in "${frameworklib}"/*.framework; do
    frameworkdir="$(basename "${frameworkpath}")"
    frameworkbin="${frameworkdir%.*}"
    if [ -f "${frameworkpath}/${frameworkbin}" ]; then
    echo "Framework: ${frameworkbin}"
    mkdir -p ${frameworkbin}
    class-dump -H -o "${frameworkbin}" "${frameworkpath}/${frameworkbin}"
    fi
    done
    done
    The script executes successfully but there is no message on screen ...

    Please Register or Log in to view images


    No folders are created in current directory?

Share This Page