Xcode 4.5.2 Certificate-free real machine debugging and generation IPA tutorial 2

Source: Internet
Author: User

In the previous blog article "xcode 4.5.2 Certificate-free real machine debugging and IPA generation tutorial", I introduced how to debug on a real machine. Now I will introduce how to generate an IPA file and share it with others for installation.

Step 1. Add a custom generated script, add a phase in build phases, add build phase in the lower right corner, click Add run script, and enter the following script:
Export codesign_allocate =/applications/xcode. APP/contents/developer/platforms/iphoneos. platform/developer/usr/bin/codesign_allocate if ["$ {platform_name}" = "iphoneos"] | ["$ {platform_name}" = "ipados"]; then/applications/xcode. APP/contents/developer/iphoneentitlements/gen_entitlements.py "My. company. $ {project_name} "" $ {built_products_dir}/$ {wrapper_name}/$ {project_name }. xcent ";
Codesign-F-s "iPhone developer" -- entitlements "$ {built_products_dir}/$ {wrapper_name}/$ {project_name }. xcent "" $ {built_products_dir}/$ {wrapper_name}/"fi

:


Step2. generate the IPA File

Under normal circumstances, the IPA file is output from xcode's organizer, but we do not have a certificate, so the output will produce an error. You can only look for another path, first generate the Code as the release target, and then open the project's Output Folder. Generally, this directory is:

/Users/your username/library/developer/xcode/deriveddata/folder prefixed by project name/build/products/release-iphoneos

If you cannot find this directory, right-click the products directory in the xcode project directory and choose show in Finder to find the *. app file.

This directory contains a. app file, which is the generated program. Put this. drag the app to iTunes and it will appear in the App list. Then drag it out of the iTunes list (for example, drag it to the desktop). Haha, it will become. IPA, and then you can use
91 The Mobile assistant or PP assistant is installed on any jailbroken iOS device!

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.