xcodebuild -list
1、archive
xcodebuild archive -workspace RedPackt2.0.xcworkspace -scheme RedPackt2.0AppStoreDev -configuration Release -archivePath ./myArchivePath
2、ipa
xcodebuild -exportArchive -archivePath myArchivePath.xcarchive -exportPath ./buildserver/BuildDemo.ipa -exportOptionsPlist /Users/baohong/Desktop/bulid/ExportOptions.plist