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!