Xcode9 Xcodebuild Simple Packaging

Source: Internet
Author: User

Here is Xcode9 's packing method, and I have used Cocoapods

Xcodebuild packaging is divided into four steps: clean, build, archive, packaged IPA

1. Clean

$ xcodebuild-workspace ${app_name}/${app_name}.xcworkspace-scheme ${app_name}-configuration Release Clean

Description: 1, ${app_name}/${app_name}.xcworkspace this string represents your. xcworkspace file storage Path

2, ${app_name} indicates that you need to compile the target name of the project

3,-configuration release here indicates the package type release, Debug. This can not write, do not write when the default is Release.

2. Build

$ xcodebuild-workspace ${app_name}/${app_name}.xcworkspace-scheme ${app_name}

Description: Build Project

3, archive

$ xcodebuild-workspace${app_name}/${app_name}.xcworkspace-scheme${app_name}-archivepath/users/fushi/desktop/ Buildtest/test.xcarchive Archive

Description:/users/fushi/desktop/buildtest/test.xcarchive: This indicates your archive file location and file name.

4. Packaging IPA

$ xcodebuild-exportarchive-archivepath/users/fushi/desktop/buildtest/test.xcarchive-exportpath/users/fushi/ Desktop/buildtest-exportoptionplist/users/fushi/desktop/buildtest/test.plist

Description: 1,-archivepath/users/fushi/desktop/buildtest/test.xcarchive: This indicates your archive file location and file name.

2,-exportpath/users/fushi/desktop/buildtest the path to generate IPA file. There is no need to add suffix IPA, if you add the Xxx.ipa folder will be generated. The generated IPA package will be under this folder

3,-exportoptionplist/users/fushi/desktop/buildtest/test.plist This plist file is more important. After Xcode 8.3, exportoptionsplist is required to be specified. which can be included in the data we all know Baidu a bit. I'll simply say my plist here.


4, method can be followed (Ad-hoc, App-store, enterprise, development four kinds) specifically said that everyone is eating this bowl of rice.

5, Signingstyle Two kinds: manual, Automatic

6, Provisioningprofiles This dictionary needs to fill in your Bundleid and configuration file name, name, name.

7, the above screenshot file parentheses inside is the meaning of the note to use the time please do not fill ...

After completing the above steps you should be able to play the IPA package, if you do not come out ... Please Baidu, Google thank you.




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.