For automated iOS engineering, generate apps and IPA files

Source: Internet
Author: User

Article address.

1. Required statements (can be executed directly on the command line)

xcodebuild-configuration Release

go to the root folder of your project and execute the above statement to start using release mode to build the project file automatically.

Note: The file must have a certificate added.

mkdir-p ipa/payload
Cp-r./release-iphoneos/product_name.app./ipa/payload

CD IPA
Zip-r $FILE _name *

Enter the folder where the generated app file is located and execute the above statement to package the app file as an IPA file.

Note: The app file can be directly imported into itunes, but without icon, just put the icon in the./ipa folder and package it together.

app file default build path (modifiable)

Xcode3: Project root directory /build/debug-iphoneos/product _name

Xcode4:./user/user_name/library/developer/xcode/deriveddata/product_name-random_string/build/ Products/debug-iphoneos/product _name

icon Requirements:

Not much more than 500*500 .

Format is jpg

Named itunesartwork

Cannot have suffix

2. script notation (mac/linux)

Script Format

#!/bin/sh

The blue statement above.  

Exit 0

Script Creation method

Open Terminal

Vim file_name.sh

Press "I" To enter edit mode

Input script content (can be pasted)

Press "ESC" to exit edit mode

Press "ZZ" (uppercase) to save and exit

About permissions

Use ls-l to view the permissions for files and folders in the current directory.

Change the permissions here to 777 chmod 777 file_name

Then rename it to. IPA

MV Xx.zip Xx.ipa

For automated iOS engineering, generate apps and IPA files

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.