Xrun the app into an IPA

Source: Internet
Author: User

Xcodebuild command-line packaging, after the use of Xcodebuild compilation found something some temporary nature of things, still exist, search for some information, find a clean command, before packaging is to build the app file, packaging the app into an IPA file needs to write a script, The operation is relatively troublesome, originally Xcode brought the app into an IPA command xcrun, so the operation became so simple, the steps are as follows:
Understanding: Xcodebuild is responsible for packaging the program into an. App file
Xcrun is responsible for the. App (signed and) packaged as an. IPA file
First, clear the build record:
/usr/bin/xcodebuild-target TargetName Clean
Second, execute build:

/usr/bin/xcodebuild-target TargetName

such as: Xcodebuild-sdk iphonesimulator6.1

Best, package The app as an IPA:

/USR/BIN/XCRUN-SDK Iphoneos packageapplication-v/home/xxx.app-o/home/xxx.ipa

Explanation:-V is followed by the app file and its path, and after-O is the stored IPA file name and the location of the pre-storage

such as: Xcrun-sdk Iphoneos packageapplication-v build/release-iphonesimulator-o/users/mac_hy/desktop/svn/prometheus/ Zdprometheus/build/testguest.ipa

NOTE:-v/home/xxx.app This statement does not bring the last xxx.app here as long as it is passed into the specified folder.  I tried for a long time to say that the file does not exist, has been very puzzled. Then I saw the example here. There's no value specified here.

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.