通过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"

猜你喜欢

转载自www.cnblogs.com/yanyanqin/p/10095410.html