Development and debugging scheme for iPhone development software xcode3.2.6 cracking Certificate-free real machine

Source: Internet
Author: User
Tags key string

Xcode can only be debugged on a real machine for free after cracking. Otherwise, you need to register Apple's Developer Program for $99 a year. You can skip registration unless you release the program to the Apple store, crack to the real machine for debugging. A real machine is a jailbreaking iOS device, such as an iPod, iPhone, or iPad. My iPod version is 4.3.3, xcode version is 3.2.6, and Mac version is 10.6.8.

Step 1: Create a certificate

Open the application-> utility-> key string access.

Choose key string access> certificate assistant> Create certificate.

In the displayed dialog box, enter "iPhone developer" as the name and select "Overwrite these default values.

Then, continue, and enter your email, the name is still iPhone developer. Next, continue, and then proceed. This step is very important. Remove the email protection function and select the code signature function. For example.

Then, continue. Enter the rfc822 name for the additional topic name extension and enter the email address. Then, continue. The system will create the certificate and prompt that the certificate is successfully created, but the certificate is not trusted and has been transferred, but it does not matter if it can be used.

 

Step 2: Modify xcode

 

1. Close xcode, open the command line terminal, and run the following command:

 

CD/developer/platforms/iphoneos. platform/developer/library/xcode/plug-ins/iphoneos \ build \ System \ support. xcplugin/contents/MACOs/dd If = iphoneos \ build \ System \ support of = working BS = 500 COUNT = 255 printf "\ x8f \ x2a \ x00 \ x00"> working dd if = iphoneos \ build \ System \ support of = working BS = 1 skip = 127504 seek = 127504/bin/MV-N iphoneos \ build \ System \ support iphoneos \ build \ System \ support. original #. original is a backup. If you want to use the registered certificate in the future, restore the file to/bin/mv working iphoneos \ build \ System \ support chmod A + x iphoneos \ build \ System \ support.

2. Run the following command after execution: (Internet connection is required)

mkdir /Developer/iphoneentitlements30   cd /Developer/iphoneentitlements30   curl -O http://www.alexwhittemore.com/iphone/gen_entitlements.txt   mv gen_entitlements.txt gen_entitlements.py   chmod 777 gen_entitlements.py  

3. after the script is executed, open "/developer/platforms/iphoneos. platform/info. plist file. This is an XML file. Double-click it to open it. Click additem to add the following two items, the key on the left and the value on the right,
Provisioning_profile_allowed = No
Provisioning_profile_required = No

Replace all "xciphoneoscodesigncontext" with "xccodesigncontext", that is, remove the iphoneos letters in the middle, and save and exit. We recommend that you back up the data before modifying it to facilitate recovery. If you do not perform this step, an error will be reported when compiling the device release version: 1 code sign error: a valid provisioning profile matching the application's identifier 'com. yourcompany. xx' could not
Be Found

 

4. open xcode, open your project, project> edit project setting, select the "build" Page, select all for deployments and show, locate the code signing identity item, and delete its subitem, select "code signing identity" as "iPhone developer ".

Then, on the File menu of xcode, new file-> iOS-> code signing-> entitlements creates an "entitlements. click "plist" to finish, open the file, add a "get-task-allow" attribute, Boolean Type, select, and save. Otherwise, "error launching remote program: failed to get the task for process XXX" may occur during debugging on the real machine. Then find the xxx-Info.plist file for your project and add the "signeridentity" item with the value of "Apple
IPhone OS application signing ". Save.

Connect the jailbreak iPod to your computer. In xcode WINDOW> organizer, your iPod will be detected. check the iPod and your xcode and exit organizer after they are recognized as normal. Select "4.3 | debug | XXX | armv6" as the compiling environment and click "build and run ", you can run it on a real machine. The real machine must be jailbroken and appsync is installed.

 

Related Article

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.