Xcode 4.x Certificate-free real machine announcement and debugging

Source: Internet
Author: User
Tags key string

From: http://www.byywee.com/page/M0/S613/613956.html


Famous saying: youth is not just a beautiful braid and colorful dress. In the world of youth, sand will turn into pearls, and stones will be converted into gold. The owners of youth, nor can we always talk about love stories and see the clouds in the mountains and rivers. The charm of youth should be called the dead branches to grow fresh fruits, and the desert is full of forests. You can think boldly, think deeply, and go straight forward, this is the beauty of youth, the joy of youth, the essence of youth! -- Guo Xiaochuan

Because I did not buy an apple developer certificate, most of the current open scene is to use the following format to achieve development and real machine testing (this project team from the Collection)

Application Scenario: iPhone mechanical Mac OS 10.6.8 xcode 4.0.1 and xcode4.0.2



& #160;

Procedure:

(1) Build a certificate

1. Open & #160; Finder-> application method-> utility-> & #160; key string Acquisition & #160;

2. CLICK: "key string interview" Select & #160; "certificate" and then select "create certificate". The process is as follows:

 

& #160;

& #160;

3. The certificate name must be set to "iPhone developer" (cannot be entered as needed) and then click "CREATE ". ()

 

& #160;

& #160;

 

& #160;

& #160;

 

& #160;

& #160;

 

& #160;

& #160;

 

& #160;

& #160;

 

& #160;

& #160;

 

& #160;

& #160;

 

& #160;

& #160;

 

& #160;

& #160;

& #160; (2) Correct xcode Device Files

Note: because these device files are system documents, the system documents must be handled by administrators, so they cannot be directly saved at the time of storage, the system prompts "You have no permission to correct this file", but you can save a copy. You can correct this copy first, and then copy it to the original contents. The system will prompt you whether to correct the change and choose "change". At this time, the Administrator's code is required to overwrite the original file, after the password is entered, the correction is completed.

& #160;

& #160;

1. Correct the sdksettings. plist file.

Find "& #160;/developer/platforms/iphoneos. under platform/developer/sdks/iphoneos4.3.sdk "& #160; sdksettings. plist & #160; file, correct the value of "code_signing_required" under "default properties": No.

& #160;

& #160;

2. Correct the "/developer/platforms/iphoneos. Platform/info. plist" file (open it in a text editor or xcode ):

 

Growth:

Provisioning_profile_allowed = No

Provisioning_profile_required = No

The result is shown in:

 

Then, replace all "xciphoneoscodesigncontext" with "xccodesigncontext ".

 

& #160;

& #160;

3. Correct the device file, restart xcode, and correct the object attributes.

1) Click the & #160; project icon and find "build Settings" & #160; find & #160; "Code Sign identity" & #160;

Follow the following standard format settings.

 

2) Set project properties:

 

& #160;

& #160;

 

& #160;

& #160;

3) then click & #160; "run", we will see that the project is being compiled, and a prompt is displayed (twice): We choose "Always allow"

 

& #160;

& #160;

4) add an entitlement. plist file to the project to allow debugging.

Note: If you do not operate this step, an error may occur when you connect to the real machine for debugging: Error & #160; launching & #160; remote & #160; program: & #160; failed & #160; To & #160; get & #160; The & #160; Task & #160; For & #160; Process & #160; XXX

& #160;

& #160;

Pace of operation: In xcode4.x & #160;, do the following:

A. follow this fulfillment in the project to create a name: entitlement. plist file in the File menu, new file-> iPhone OS-> code signing-> entitlements. name the file "entitlements. plist "and click" "finish "". & #160;

 

& #160; & #160; B. Open the & #160; file & #160; "entitlement. plist" and change the "can be debugged" attribute value to "yes ".

 

& #160;

& #160;

C. Change the value of code signing entitlements to "entitlements. plist ".

 

4. After the prompt is selected: You can see

 

Now we can see that you have to go to the iPhone.

When you run the verification method, you can view the logs printed during the iPhone running process via organizer.

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.