How can I extract the 2.1 iphone sdk on linux/ubuntu?

Discussion in 'Linux' started by ubunix, Sep 12, 2008.

  1. ubunix

    ubunix Member

    Joined:
    Aug 6, 2008
    Messages:
    637
    Likes Received:
    1
    Device:
    iPhone 5 (Black)
    I just download the 1.4gb DMG image, and I cant extract it. Please help!
  2. SkaterGOD/DOOD23

    SkaterGOD/DOOD23 New Member

    Joined:
    Dec 20, 2007
    Messages:
    686
    Likes Received:
    5
    Device:
    iPod touch
    Via: http://www.backports.ubuntuforums.org/showthread.php?t=588893

    ---------------cleaned up a bit----------------

  3. ubunix

    ubunix Member

    Joined:
    Aug 6, 2008
    Messages:
    637
    Likes Received:
    1
    Device:
    iPhone 5 (Black)
  4. SkaterGOD/DOOD23

    SkaterGOD/DOOD23 New Member

    Joined:
    Dec 20, 2007
    Messages:
    686
    Likes Received:
    5
    Device:
    iPod touch
    Err, you tried both of these?:
  5. ubunix

    ubunix Member

    Joined:
    Aug 6, 2008
    Messages:
    637
    Likes Received:
    1
    Device:
    iPhone 5 (Black)
    Nevermind mate, both those methods dont work, I just run UltraIso through Wine to extract the image.
  6. gojohnnyboi

    gojohnnyboi Well-Known Member

    Joined:
    Jan 25, 2008
    Messages:
    3,339
    Likes Received:
    55
    do this:

    compile or download the dmg2img binary. run it on the sdk. then mount it i think the command is like

    Code:
    sudo mount -t hfsplus -o loop /path/to/iphonesdkconvertedimage.img /path/to/mount/image/at
    then, find inside that mounted image, iPhoneSDKHeadersAndLibs.pkg

    run sudo apt-get install xar in terminal, and run these commands on the package.

    Code:
    xar -xf iPhoneSDKHeadersAndLibs.pkg Payload
    mv Payload Payload.gz
    gunzip Payload.gz
    cat Payload | cpio -i
    and you will have the sdk frameworks, which hold a folder in each named "Headers", that holds the headers.
  7. ubunix

    ubunix Member

    Joined:
    Aug 6, 2008
    Messages:
    637
    Likes Received:
    1
    Device:
    iPhone 5 (Black)
    Thanks, but I already extracted the image using wine to run UltraIso then followed the guide at theiphonewiki.
  8. Cyanidepoison

    Cyanidepoison Active Member

    Joined:
    Jan 18, 2008
    Messages:
    1,076
    Likes Received:
    2
    XPwn contains three tools that can do this: hdutil, dmg, and hfsplus.
  9. Howell21

    Howell21 Guest

    Ubunix.. can you link the guide at thiphonewiki? I haven't been able to find it. And did it all work for you?
  10. Led

    Led Banned

    Joined:
    Jan 27, 2008
    Messages:
    1,975
    Likes Received:
    1
    Whoa, whoa, whoa, wait. Can you use the iphone SDK on linux?

Share This Page