Debug iPhone apps on jailbroken iPhone 3G with xcode 3.2.2-another safe keeping

Source: Internet
Author: User
Tags appsync

Been updated the xcode and iPhone SDK into 3.2, now I am ready to debug my apps directly on my jailbroken iPhone 3G. this hacks will save you $99 from paying apple just to code for fun or perhaps profit.

Needed steps are:
1. Jailbreak your iPhone.
2. Install appsync or installd patch, mine is using appsync.
3. Download and install xcode 3.2.2 bundled with iPhone SDK 3.2.
4. Find for info. plist in the/developer/platforms/iphoneos. Platform/
You'll find info. plist, this if you install xcode on/developer.
Then do the following:

CD/developer/platforms/iphoneos. Platform/
CP info. plist info. plist. Bak
Nano info. plist

In nano press Ctrl + W, find for the following string:
<Key> code_sign_context_class </key>
Now, below that string there is this string:
<String> xciphoneoscodesigncontext </string>

Change the string xciphoneoscodesigncontext:
<String> xccodesigncontext </string>
Find for another occurences, replace a couple time until you replace all of them.

5. Now everything is made simple since I already gather all the necessary tools from the Internet to use it easily, download is available at the bottom.
6. patch the iPhone OS plugin for xcode, on the ZIP archive on the bottom it has file: xcodepatch, run it using:
# Sudo sh xcodepatch
7. Run xcode.
8. Create new iPhone project.
9. open the Project Settings (projects-> edit project settings), On the build tab, search for code signing, it'll show you code signing identity and its child, now set both of them to value of "Don't code sign ". close the settings.
10. Add a new build phase script (projects-> new build phase-> new run script build phase), the copy paste the test inside file: Build phase.txt into the script window.
11. Run, The xcode will live debug the app on your device.

One might forget to add Codesign. Since we don't use Apple code sign, we create our own code sign, using self code sign,
Steps are:

A. Open an app called keychain access on applications/utilites.
B. On keychain access menu, open certificate assistant-> Create a certificate
C. fill in the name of "iPhone developer", you must use this exact name, since the script is set to use this codesign name. set the certificate type into code signing, and check the "let me override defaults"
D. Leave the rest and continue, and keep continue until the certificate is created successfully.

Now, rerun again the xcode...

Here is the important thing to notice, if you ever forgot to do step 9 above, you will not be able to do live Debug on device, the xcode debugger will give this message:
Error from Debugger: the program being debugged is not being run

This because entitlement is needed in order to debug the app on the device, otherwise you will have to run it manually without debugging support.

File needed: http://www.mediafire.com/file/wmwmafqnqjn/xcode-jailbreak-3-1-3.zip

Or/files/kilonet/xcode-jailbreak-3-1-3.zip

Just unzip it, and run:Sudo sh install. ShTo install it on your Mac.

I already tested this and worked great...

Safe keeping complete

 

Http://azacode.wordpress.com/2010/06/06/debug-iphone-apps-on-jailbroken-iphone-3g-with-xcode-3-2-2-another-safe-keeping/

 

If the above Code still cannot be run, in/developer/platforms/iphoneos. Platform/info. plistChange the value of code_sign_context_classXccodesigncontext

/Developer/platforms/iphoneos. Platform/developer/sdks/iphoneos3.2.sdk/sdksettings. plistThe value of code_signing_required is changed to No. 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.