Xcode (5,6,7) hack, certificate-free debugging summary

Source: Internet
Author: User

1. First, you have to have a jailbreak iphone/ipod/ipad, the Jailbreak method is not available here.

2. Add the Source: http://apt.weiphone.com in the real machine Cydia used to test, download the Appsync for the real-system version.

3. Create a certificate on the computer that is used to sign the generated program.

Create a certificate

The process of creating a certificate is simple and opens "Other-keychain access" on your computer. Then click on "Keychain Access-Certificate Assistant-Create Certificate ..." in the menu bar to open the wizard. Note that here are three places where you have to name the iphone Developer, set the type to code signing, and select "Let me override these defaults". After the steps do not change, all the way to click "OK" and "continue", the final completion of this wizard can be.

4: Modify the sdksettings.plist file under the SDK

1:cd/applications/xcode.app/contents/developer/platforms/iphoneos.platform/developer/sdks/iphoneos8.0.sdk/ Go to the SDK directory

2:sudo CP sdksettings.plist SDKSettings.plist.orig Backup original file

3:open. Open current Folder

4: Double-clicking the sdksettings.plist in the pop-up Finder window will launch Xcode's graphical interface, expand the Defaultproperties branch, and place the entitlements_required and Code_signing_ below Required two attributes to NO.

5: Modify the Info.plist file under Iphoneos.platform

1:cd/applications/xcode.app/contents/developer/platforms/iphoneos.platform

2:sudo CP Info.plist Info.plist.orig

3: Double-click Open Info.plist in the pop-up finder window. Under Defaultproperties Branch, runtimerequirements Branch and Overrideproperties branch, respectively,

There are 3 places to change all Xciphoneoscodesigncontext to Xccodesigncontext (Xcode 7 has 2)

6: Prepare the customized post-build script (this step needs to be done in a networked state)

1:sudo mkdir/applications/xcode.app/contents/developer/iphoneentitlements
2:cd/applications/xcode.app/contents/developer/iphoneentitlements
3:sudo Curl-o Http://www.alexwhittemore.com/iphone/gen_entitlements.txt
4:sudo MV Gen_entitlements.txt gen_entitlements.py
5:sudo chmod 777 gen_entitlements.py

7: Modify Project Settings

1: Disable Xcode automatic signature operation

All of the Code signing options in the project configuration "Build Settings" are set to "T code sign".

  

2: Add a custom post-build script in build phases, click the "+" sign in the upper-left corner, add a "New Run script Phase", and enter the following script:

xcode_path_content_developer=" Xcode-select- Print-path '
if [-F "${xcode_path_content_developer}/usr/bin/codesign_ Allocate "]; Then
export codesign_allocate= "${xcode_path_content_developer}/usr/bin /codesign_allocate "
elif [-F" ${xcode_path_content_developer}/ Toolchains/xcodedefault.xctoolchain/usr/bin/codesign_allocate "]; Then
export codesign_allocate= "${xcode_path_content_developer}/ Toolchains/xcodedefault.xctoolchain/usr/bin/codesign_allocate "
else
export codesign_allocate= "/usr/bin/codesign_allocate"
fi

(Note the path of codesign_allocate, it is best to check under your Xcode codesign_allocate path)

Xcode (5,6,7) hack, certificate-free debugging summary

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.