Four practical ways to "original" iOS packaged IPA (. App Goto. IPA)

Source: Internet
Author: User

To summarize, there are several ways to convert the app package to an. IPA package:

1, Apple recommended way, that is, practical xcode archive function

Xcode menu bar->product->archive-> Three, generally choose the latter two.

Limitations: This approach is generally used in personal development, but it is a bit cumbersome when a certificate is used by multiple people. General multiplayer development is the use of provisioning PROFILE+P12 files for real-machine debugging. The above method will need to input appleid when exporting the IPA package at the end, but also to other people in the team. The use of provisioning PROFILE+P12 real-Machine debugging method does not require developers to know AppleID and password, the password is generally placed in leader there;

2. itunes dragged into

Previously, this method was very convenient. For specific steps, see the dynamic diagram:

Note: The "my App" in itunes refers to a program on a computer that does not require online and can be removed from the app.

3. Automatic compilation of scripts

It is also fast to write a fully automated compilation script that can be packaged without having to open the Xcode compilation run. Interested can read this article.

Cons: Not wrong OK, once there are grammatical errors or other errors appear is not good to deal with

4. Extract the suffix name (recommended in this article)

This is done on the basis of the. App package generated by Xcode compilation, and the IPA contract is implemented with simple compression and the suffix name.

In this way, the script can be automated processing and manual processing of two ways to implement, recommended scripting methods, once and for all.

4.1 Script automatically generate IPA package

STEP1: Create a new folder named "Distribute" and create a new distribute.sh script file with: ( note that all appname in the script should be replaced by your real app name)

RM-appname/appname/payload/appname/appnamezip-0    

STEP2: Put the. app file that will be converted into the distribute/folder

The folder directory structure is as follows: (Note that all appname in the script should be replaced by your real app name)

distribute/distribute.shdistribute/appname.app 

STEP3: Run distribute.sh Script

Open the TERMINAL,CD to the Distribute folder and pull the distribute.sh into the terminal to execute. If you are prompted for permission denied, use the chmod 777 distribute.sh command to grant the permission, and then perform the distribute.sh again.

STEP4: After about a few seconds, the appname/folder is generated under the distribute/folder, and the Appname.ipa is the package we want.

4.2 Manual Compression Change suffix method

This approach is essentially the same as the 4.1 approach.

STEP1: New "Payload" folder, pay attention to the name of the word is not bad;

STEP2: Put your. App package into payload, notice that the app's name doesn't make any changes, just use Xcode to generate the app name;

STEP3: Right-click on the payload folder to zip and then change the resulting. zip file suffix to. IPA

Original article, reproduced please indicate the program small Weng @ Blog Park, Mail [email protected],jilon, contact please specify "blog Park". Welcome you and I in c/c++/objective-c/machine vision and other fields to carry on the exchange!

Four practical ways to "original" iOS packaged IPA (. App Goto. IPA)

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.