Use the terminal command line to package XZ_iOS, and use the xz_ios command line.

Source: Internet
Author: User

Use the terminal command line to package XZ_iOS, and use the xz_ios command line.

I. Packaging xcodeproj

1. Clear

Terminal input: clean-project/Users/admin/MyProject/project. xcodeproj-configuration $ {CONFIGURATION}-alltargets
Here,/Users/admin/MyProject/project. xcodeproj is the project path

** Clean succeeded ** indicates the operation is successful.

2. Build

Terminal input: xcodebuild archive-project/Users/admin/MyProject/project. xcodeproj-scheme project-archivePath/Users/admin/MyProject/build/project. xcarchive

If ** archive succeeded * is displayed, the operation is successful.

3. Package and export

Terminal input: xcodebuild-exportArchive-archivePath/Users/admin/MyProject/build/project. xcarchive-exportPath/Users/admin/MyProject/build/project. ipa-exportOptionsPlist/Users/admin/MyProject/build/exportOptions. plist

** Export succeeded ** indicates the operation is successful:

Where:

-ArchivePath is followed by the packaged. xcarchive path.

-The exportPath is followed by the. ipa path to be exported.

-ExportOptionsPlist is followed by the configured plist file path.

The methods in plist can be set to 'ad-hoc ', 'app-store', 'enter', 'Development', or 'package' based on your needs.

Packaging statement before Xcode8.2:

Xcodebuild-exportArchive-archivePath/Users/admin/MyProject/build/project. xcarchive-exportPath project-exportFormat ipa-exportProvisioningProfile "iOS Team Provisioning Profile: com. xxx. xxxxxxx"

The following error occurs: xcodebuild: error: invalid option '-exportFormat'. Because exportFormat is discarded, modify it to the packaging statement of 3.

Ii. Packaging of. xcworkspace


Related Article

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.