python版本需求: python3 使用前请安装 requirements.text
pip install -r requirements.text
- workspace 项目的路径地址
- project_name 项目名称
- scheme xcodebuild -list查看
- display_name显示名 发送钉钉消息时显示名字
- export_options_plist 导出文件配置使用文件夹中的默认 exportOptions.plist
- configuration 默认打release还是debug
- mothod 默认打出包类型 development/ad-hoc/appstore
- export_path 打包出archive文件导出路径
- apiKey蒲公英上传api_key
- dingdingWebHook钉钉机器人发消息地址
查看打包命令
python autoarchive.py -h
usage: Python脚本打包工具 [-h] [-c Release] [-m ad-hoc]
optional arguments:
-h, --help show this help message and exit
-c Release, --configuration Release
该选项用来配置打包配置项类型 可选项:Debug,Release 默认:Release
-m ad-hoc, --method ad-hoc
该选项用来配置打包输出类型 development,ad-hoc,app-store 默认:ad-hoc
python autoarchive.py -c release -m ad-hoc
打包完成后会在指定的archive路径生产一个projectname名字的文件夹,每次打包通过时间来区分保存,打包的ipa文件在对应的export目录下