First, the command line package I use Xcodebuild and xcrun two tools. Quite simple.
Packaging Commands: Xcodebuild-target < engineering name >-configuration Release Clean Build//First clean and compile project
XCRUN-SDK iphoneos packageapplication-v <app path >-o <ipa package path >.ipa//convert the compiled app into an IPA package
Use of Jenkins
Start Jenkins under Tomcat
Enter Path/usr/local/apache-tomcat-7.0.63/bin
Open the./startup.sh
The time string date=$ (date +%m%d%h%m) is derived
Go to Jenkins working directory CD $WORKSPACE
Compilation Project Xcodebuild-target mobileuu-configuration Release configuration_build_dir= $WORKSPACE/build clean BUILD
Packaging engineering XCRUN-SDK Iphoneos packageapplication-v $WORKSPACE/build/mobileuu.app-o $WORKSPACE/build/${product_name}_${ Environment}_${version}_${date}.ipa
Command line packaging and Jenkins use