用途:借助 asc 管理构建状态、处理进度与保留策略,适合等待构建处理完成或清理旧构建的场景。
主要能力:查询最新构建(asc builds info --app "APP_ID" --latest --version "1.2.3" --platform IOS);获取下一个安全构建号(asc builds next-build-number --app "APP_ID" --version "1.2.3" --platform IOS),该命令扫描已处理构建历史与进行中的上传,返回最大正数构建号加一,空白或非数字构建号会跳过并警告,若无可用数字则回退到 --initial-build-number;列出近期构建(asc builds list --app "APP_ID" --sort -uploadedDate --limit 10);查看处理状态(asc builds info --build-id "BUILD_ID")。
发布流程:推荐端到端方式,TestFlight 用 asc publish testflight --app "APP_ID" --ipa "./app.ipa" --group "GROUP_ID" --wait;App Store 用 asc publish appstore --app "APP_ID" --ipa "./app.ipa" --version "1.2.3" --wait --submit --confirm。
清理:预览过期 asc builds expire-all --app "APP_ID" --older-than 90d --dry-run;执行过期 asc builds expire-all --app "APP_ID" --older-than 90d --confirm;单个构建 asc builds expire --build-id "BUILD_ID" --confirm。
注意:asc builds upload 仅上传并提交 IPA 或 PKG,若还需分发到 TestFlight 或暂存 App Store 发布,应使用 asc publish。处理时间较长时,可在支持的命令中使用 --wait、--poll-interval 和 --timeout。其他细节暂未提供。