IOS Xcodebuild packaged App

Source: Internet
Author: User

1. Traditional app packaging (no cocopods used)

Before packaging, select the certificate and configuration file.

Step1: Open terminal, CD into the project directory

Step2:xcodebuild Clean (if the BUiD file exists, delete all the original files produced by the build process)

Step3:xcodebuild-target test-configuration Release (compile, italic part needs to be changed to your own project name)

Once this is done, you will find one more build folder in your project directory, find the. app file, and use the next step.

STEP4:XCRUN-SDK Iphoneos packageapplication-v build/release-iphoneos/test.app-o/Users/apple/Desktop/test.ipa (packaged, Set the. app file path and the file path to be packaged.

The Ok,spa file is packed.

2. Cocopods after using the package

Step1: Open terminal, CD into the project directory

Step2:xcodebuild-workspace test.xcworkspace-scheme test-configuration Release (compile, test for own project name)

Step3:xcodebuild-workspace test.xcworkspace-scheme Test Archive-archivepath/users/apple/desktop/test.xcarchive (Generate. xcarchive file)

Step4:xcodebuild-exportarchive-exportformat Ipa-archivepath "/users/apple/desktop/test.xcarchive"-exportPath "/ Users/apple/desktop/test.ipa "-exportprovisioningprofile" Myinhouse "(packaged, I use inhouse certificate here)

It's so easy to pack an IPA.

IOS Xcodebuild packaged App

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.