Xcode real machine test Cracking Method (ADD and modify) xcode 4.3 passed

Source: Internet
Author: User
Tags key string

Generate local certificate
Application> utility> key string access
Menu: access the key string-> certificate assistant-> Create a certificate, and then operate in the order of slices:
1. xcode 3.2.5 Certificate-free development and debugging _ open the certificate creation menu


2. xcode 3.2.5 Certificate-free development and debugging _ enter the Certificate Name iPhone developer and select override default


3. xcode 3.2.5 Certificate-free development and debugging _ confirm to continue


4. xcode 3.2.5 Certificate-free development and debugging _ enter the serial number validity period. The validity period cannot exceed 365 days.


5. xcode 3.2.5 Certificate-free development and debugging _ enter the email address


6. xcode 3.2.5 Certificate-free development and debugging _ entering key pair Information


7. xcode 3.2.5 Certificate-free development and debugging _ Key Usage extension selection: Signature


8. xcode 3.2.5 Certificate-free development and debugging _ extended key use extension selection: code signature


9. xcode 3.2.5 Certificate-free development and debugging _ Basic Constraint extension not selected


10. xcode 3.2.5 Certificate-free development and debugging _ TOPIC backup name extension enter the rfc822 name and enter the mailbox name


11. xcode 3.2.5 Certificate-free development and debugging _ select the key string type as the logon key for the certificate location

 

Xcode cracking:

Make sure that xcode is disabled, Application> utility> terminal, and copy and paste the following code:
#! /Bin/bash
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. Original
/Bin/mv working iphoneos \ build \ System \ support
Chmod A + x iphoneos \ build \ System \ support

Copy and paste the following code to the command line terminal:
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

After the script is executed, modify the "/developer/platforms/iphoneos. Platform/info. plist" file and make the following changes:
Add the following two items (inform the project to compile without a certificate ):

1 provisioning_profile_allowed = No

2 provisioning_profile_required = No

XML document. Therefore, the location must be modified:

...

<Key> archs </key>

<String> armv6 </string>

<Key> code_sign_context_class </key>

<String> xccodesigncontext </string>

<Key> compress_png_files </key>

<String> Yes </string>

<Key> debug_information_format </key>

<String> dwarf-with-dsym </string>

<Key> embedded_profile_name </key>

<String> embedded. mobileprovision </string>

<Key> infoplist_output_format </key>

<String> binary </string>

<Key> native_arch </key>

<String> armv6 </string>

<Key> plist_file_output_format </key>

<String> binary </string>

<Key> provisioning_profile_allowed </key>

<String> NO </string>

<Key> provisioning_profile_required </key>

<String> NO </string>

...

<Dict>

<Key> code_sign_context_class </key>

<String> xccodesigncontext </string>

<Key> debug_information_format </key>

<String> dwarf-with-dsym </string>

<Key> embedded_profile_name </key>

<String> embedded. mobileprovision </string>

<Key> sdkroot </key>

<String> iphoneos4.3 </string>

<Key> provisioning_profile_allowed </key>

<String> NO </string>

<Key> provisioning_profile_required </key>

<String> NO </string>

</Dict>

...

Then, use a text editor to replace all the "xciphoneoscodesigncontext" in the file with "xccodesigncontext", that is, remove the "iphoneos" in the middle ". 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

Open xcode, open your project, project> edit project setting, select "build", select all for deployments and show, locate the code signing identity item, and delete its subitem, and assign "code signing identity" to "iPhone developer" (which is actually an option)-the key is that the name of the signature certificate is different. My P is lowercase P, so it must be changed every time.

Then find the xxx-Info.plist file for your project and add the "signeridentity" item with the value "Apple iPhone OS application signing". Save.

Complete xcode cracking or, more accurately, configuration!

 

Xcode real machine debugging:
Connect your iPhone to your computer and detect your iPhone in xcode window-& gt; organizer. check that the iPhone and your xcode are properly recognized and exit organizer. Select "iPhone device-4.2 | release" as the compiling environment, which requires both the release and device options. Click "Build and go". During this period, we will select the signature certificate and click "allow". After that, we will be OK when your iPad/iPhone screen is lit up.

Your program will be automatically downloaded to your iPhone for debugging.

 

Package IPA:
The compiled program is the bargainsale. app file (the directory is in the document> bargainsale-> build-> release-iphoneos ).

You need to create an IPA installation package to facilitate installation on the iPad or iPhone.

Step 1: Create a folder with any name. Find a jpg image of no more than 500*500 and rename it itunesartwork. Note that no suffix is available.

Step 2: Create a folder named payload and copy the compiled bargainsale. app to this folder.

Third, modify the info.plistfile in the append. You can use pledit.exe to edit the file in windows and add the following content to the <dict> </dict> node:

<Key> signeridentity </key>

<String> Apple iPhone OS application signing </string>

Select payload and itunesartwork, right-click to produce the compressed zip file, for example, bargainsale.zip, and change the suffix to IPA. Now you can double-click the bargainsale. IPA file to see if you can add it to iTunes.

From: http://fly8.us/Article/IT/ITWeb/2011/06/30/213750548.html

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.