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