English 中文(简体)
How do I build apps to my jailbroken iPad?
原标题:

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

最佳回答

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
问题回答

In xcode s menu bar, go to windows->organizer. I don t remember exactly what it looks like, but once you plug in an ios device (aka the iPad) it should appear under devices on the left hand side. Click on it, and it will take you to a screen with 2 or so buttons on it, one of which will be use for development , or something like that. Clicking this will provision the iPad for development, and everything should work fine after that. Repeat for all other ipads/phones/touches.





相关问题
How to change out-of-focus text selection color in Xcode?

Okay, I ll bite. I ve got really pleasant code/window colors set up in Xcode. Ordinarily, my selection color is very visible. When I am doing a project search and iterating through the results, ...

Iphone NSTimer Issue

Hi I am new to objective c. I am trying to make an app for iphone. I have a button on my view, and the click on which the function playSound is called. This is working properly. It does plays the ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

Iterating over string/strlen with umlauted characters

This is a follow-up to my previous question . I succeeded in implementing the algorithm for checking umlauted characters. The next problem comes from iterating over all characters in a string. I do ...

Xcode open two editor windows with same file

Is it possible to open the same file in two separate windows in Xcode. I can open a file in one window and the same file in the main Xcode editor window, but I wanted two separate fulltime editor ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have ...

热门标签