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.