Moving SDK apps out of the sandbox?

Discussion in 'iOS Development' started by crizh4x, Dec 21, 2008.

  1. crizh4x

    crizh4x Active Member

    Joined:
    Sep 19, 2007
    Messages:
    4,474
    Likes Received:
    17
    Device:
    2G iPod touch
    Hey guys, I just finished an app (hopefully) that you guys will find quite useful later on. For now, I need some more information on moving an app that I wrote with the official SDK into the jailbroken environment.

    I wrote it on the official SDK headers and I've been testing it with the MobileInstallation Patch + Plist mod + iPhone Pwned Developer trick. All works well when the app is installed to /User/Applications/*.*, but I can't get it to launch when I move it from there to the default Applications folder. It loads for about a half a sec and then crashes back to the SpringBoard.

    I have tried to both chown and ldid -S to correct the problem.. both to no avail. Is there anything I need to mod in the Info.plist or ResourceRules perhaps to make it not try to run in a sandboxed environment?

    I'm not too sure. Any help is appreciated!

    Thanks Guys.
  2. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    Here's a video explaining how to do it:

    http://www.sendspace.com/file/70keyz

    After that just SSH the .app into /Applications and do:

    Code:
    chmod -R 0755 /Applications/APPNAME.app
    ldid -S /Applications/APPNAME.app/APPNAME
    quickload --reload-all
    Of course, you could change the last line to use a different method.
  3. crizh4x

    crizh4x Active Member

    Joined:
    Sep 19, 2007
    Messages:
    4,474
    Likes Received:
    17
    Device:
    2G iPod touch
    I'll check out the video.
    I have quickload already because I was using it in my Toolchain Make File... made resprings less.... springy.

    Thanks bro.
  4. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    No prob. Thank iPTM when u talk to him next, he made the video

    Please Register or Log in to view images

    Also, it shows this as a method for 2.1, but works on 2.2 just fine

    Please Register or Log in to view images

  5. crizh4x

    crizh4x Active Member

    Joined:
    Sep 19, 2007
    Messages:
    4,474
    Likes Received:
    17
    Device:
    2G iPod touch
    Ok, well, after following that guide nothing shows on the SpringBoard. guiCache and Quickload both do not allow the icon to see the light of day.

    Any ideas?
  6. Nickll9009

    Nickll9009 New Member

    Joined:
    Sep 19, 2007
    Messages:
    1,367
    Likes Received:
    8
    Device:
    iPod touch
    Is the app 755'd and ldid'd?
  7. crizh4x

    crizh4x Active Member

    Joined:
    Sep 19, 2007
    Messages:
    4,474
    Likes Received:
    17
    Device:
    2G iPod touch
    755'd and ldid yes.

    just to make sure it's:

    Code:
    ldid -S <executable>
    right? or is it lowercase?
  8. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    Sort of on topic, which iPhone SDK version are you using?
    BigBoss told me the only way to get my application from the iPhone SDK to my jailbroken iPod touch without the $99 Apple Certificate is to use the iPhone SDK for 2.0. I'm using 2.1 so it's impossible for me, without downloading 2.0, which i can't find anywhere.

    EDIT: Hadn't watched the video, watching now, thanks.
  9. crizh4x

    crizh4x Active Member

    Joined:
    Sep 19, 2007
    Messages:
    4,474
    Likes Received:
    17
    Device:
    2G iPod touch
    I'm using 3.1.2

    But I am on a 2.2 iPod and I have been testing apps directly on the device for about 3 days. The MobileInstallation Patch makes that easy... I just can't get my app to load on the SpringBoard.

    Also of note, I was following that tutorial so I compiled with 2.1 - device instead of 2.2. When I try it with 2.2, it tells me that I must codesign.
  10. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    When you get your problem sorted out, could you possibly help me test my application on my device? I have the patched mobile installation and 2.2. I currently have the 2.1 SDK also, the 2.2 SDK is downloading now.

Share This Page