配置好证书,而后在命令行转到项目目录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