配置好證書,而後在命令行轉到項目目錄xcode
1.清除app
EthantekiiMac:CTest ethan$ xcodebuild cleaniphone
2.編譯ui
EthantekiiMac:CTest ethan$ xcodebuild -target CTest -configuration Releasespa
3.打包ipa命令行
EthantekiiMac:CTest ethan$ xcrun -sdk iphoneos PackageApplication -v /Volumes/work/buildCommand/test/CTest/build/Release-iphoneos/CTest.app -o /Volumes/work/buildCommand/test/CTest/CTest.ipacode