How can I test an iOS application on my Jailbroken Ipod Touch ?
Is there a tutorial for this?
How can I test an iOS application on my Jailbroken Ipod Touch ?
Is there a tutorial for this?
How can I test an iOS application on my Jailbroken Ipod Touch ?
Typically, all you need to do is build your application and then sign it:
$ codesign -fs "Johnny Developer" myapp.exe
If you don't have a developer account, then your other option is to use ldid
. Its supposed to be as simple as:
$ ldid -S myapp.exe
I say "its supposed to be as simple as" because I've never had any luck with it. I just use my developer account from the command line using codesign
. The last time I used it, I was getting "Bad CPU Type In Executable" (I guess it could not recognize ARMv7 at the time).
ldid
is covered on the Jailbreak QA. See the topics with the ldid tag.
If your device is really old, then you don't need even need ldid
. Here, I believe "really old" is pre-iOS 4.2 or so. See Command Line Test Program "Killed: 9".
You will know when code signing is giving you trouble. If you attempt to run your program from the command line, then it will be "Killed: 9".
Is there a tutorial for this?
The quick, short answer:
The nice thing is, Cydia has a link for detailed instructions on its homepage/landing page (on the device).
Also see the Jailbreak QA. Its like Stack Overflow for Jailbreakers.
I've actually done this myself a few days ago. I'd like to mention no jailbreak is necessary.
First, you'll want to go to /User/<username>/Applications/
then find Xcode.app
, secondary click it, and choose Show Package Contents
. Afterwards, navigate through Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
(Now take a break for some water because that must have taken a lot of energy) and copy SDKSettings.plist
to your Desktop. Now, open the file you've just copied (SDKSettings.plist
) from the Desktop then use the .plist editor to find /DefaultProperties/CODE_SIGNING_REQUIRED
. Now look to the right of that and toggle it from YES
to NO
.
Now you'll want to move the edited version from the Desktop back to Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk
and be sure to either overwrite the old file or rename the old file so Xcode will load your modification instead.
There's only one more thing you'll need to be sure of. When you're creating applications in Xcode, you'll need to set the code signing setting to Don't Code Sign
, that way you'll be able to run the unsigned application on your device. To do so, open your application (or create a new project, whatever) in Xcode then user the Project Navigator to find your application (It's the first thing in the list with the blue icon to the left.), then go to Build Settings
, be sure All
is selected -- not Basic
, then go to the Code Signing
part, and change the value of Code Signing Identity
to Don't Code Sign
.
Now you're all set (finally) to test applications on your device.