通过Shell脚本生成IPA

通过Shell脚本生成IPA,本文内容有待实际操作后验证。

方案一:xcodebuild -archivePath

# 清理
xcodebuild clean -workspace xgj.xcworkspace -scheme xgj

# 构建
xcodebuild -archivePath xgj.xcarchive -workspace xgj.xcworkspace -sdk iphoneos -scheme xgj -configuration "Release.Adhoc" archive
xcodebuild -archivePath xgj.xcarchive    -workspace xgj.xcworkspace -sdk iphoneos -scheme xgj -configuration "Debug.Adhoc" archive 

# 打包
xcodebuild -exportArchive -exportFormat IPA -archivePath xgj.xcarchive -exportPath xgj-`date '+%Y%m%d-%H%M%S'`.Adhoc.ipa -exportProvisioningProfile "XC Ad Hoc: com.mengying.xgj"

posted @ 2018-12-10 11:19  yanyanqin  阅读(278)  评论(0编辑  收藏  举报