How do I build apps to my jailbroken iPad?

Thomas picture Thomas · Aug 24, 2010 · Viewed 8.9k times · Source

I have XCode 3.2.2 and am trying to build an app to my jailbroken iPad. I have followed the tutorial to Fake Code Sign Apps here on Multi-Touch forums. On the iPad, I installed AppSync. Still, when I tried to build my app, I got

Error Starting Executable

No provisioned iPhone OS device is connected.  

I think next, I'll try Cydia's tutorial....which probably woulda made sense to do first anyway. I'll post progress here. But in the meanwhile, any suggestions are welcome.

Thanks!
Thomas

Answer

Thomas picture Thomas · Aug 24, 2010

OK so clearly, I'm just an idiot. I'm using XCode 3.2.2, which only supports iPad 3.2. My iPad has 3.2.1 installed. Updating my XCode will probably fix this (non) issue lol.

There are three ways to do this:

  • Self-Signing (from Xcode)
  • Pseudo-Signing (from device)
  • Disable Signing

All are detailed and explained here on Saurik's site.

I went with self-signing. Here's the process for those interested.

Self-Signing

  • Edit Info.plist file
    • Located at /Developer/Platforms/iPhoneOS.platform/.
    • Find three occurrences of "XCiPhoneOSCodeSignContext" and replace with "XCCodeSignContext"

  • Create certificate.
    • Open Keychain Access >> Click Keychain Access >> Certificate Assistant >> Create a Certificate
    • give it any name
    • Self-signed Root
    • Change type to "Code Signing"
    • Check "Override defaults"
    • Click "Continue" until done

  • Build the app in Xcode.
    • Edit Project Settings >> Set "Code Signing Identity" to the name of the certificate you just created.
    • Select the device you want to build to from the dropdown menu (not simulator)
    • Cmd + B to build

  • Copy to Device
    • Get the .app file from the build directory (/build/Debug-iphoneos/AppName.app)
    • SSH the file over to /Applications directory on the device
    • Respring/ reboot