asc-check-readiness
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseasc versions check-readiness
asc versions check-readiness
Pre-flight check that aggregates all App Store submission requirements for a version.
对版本的所有App Store提交要求进行汇总的提交前预检。
Command
命令
bash
asc versions check-readiness --version-id <VERSION_ID> [--pretty]Runs 6 API checks and returns a report.
VersionReadinessbash
asc versions check-readiness --version-id <VERSION_ID> [--pretty]运行6项API检查并返回一份报告。
VersionReadinessReading the Output
解读输出
Top-level decision field
顶层决策字段
"isReadyToSubmit": true → safe to submit; affordances.submit is present
"isReadyToSubmit": false → one or more MUST FIX checks failed"isReadyToSubmit": true → 可安全提交;返回结果中包含affordances.submit
"isReadyToSubmit": false → 有一个或多个必须修复的检查项未通过Check severity
检查项严重程度
| Field | Severity | Blocks |
|---|---|---|
| MUST FIX | Yes — state must be |
| MUST FIX | Yes — build must be linked, valid, not expired |
| MUST FIX | Yes — app must have a price schedule configured |
| SHOULD FIX | No — warning only, submission still proceeds |
| SHOULD FIX | No — Apple may reject post-submit |
| 字段 | 严重程度 | 是否阻碍 |
|---|---|---|
| 必须修复 | 是 — 状态必须为 |
| 必须修复 | 是 — 必须已关联构建包、构建包有效且未过期 |
| 必须修复 | 是 — 应用必须已配置价格方案 |
| 建议修复 | 否 — 仅为警告,仍可提交 |
| 建议修复 | 否 — Apple可能在提交后拒绝审核 |
Build check fields
构建包检查字段
json
"buildCheck": {
"linked": true,
"valid": true,
"notExpired": true,
"buildVersion": "2.1.0 (102)",
"pass": true
}passlinked && valid && notExpiredjson
"buildCheck": {
"linked": true,
"valid": true,
"notExpired": true,
"buildVersion": "2.1.0 (102)",
"pass": true
}passlinked && valid && notExpiredCAEOAS — Use Affordances
CAEOAS — 使用返回的可用操作
When , the response includes :
isReadyToSubmit == trueaffordances.submitjson
"affordances": {
"checkReadiness": "asc versions check-readiness --version-id v-123",
"listLocalizations": "asc version-localizations list --version-id v-123",
"submit": "asc versions submit --version-id v-123"
}Always copy directly — never construct the submit command manually.
When , is absent.
affordances.submitisReadyToSubmit == falseaffordances.submit当时,响应结果中包含:
isReadyToSubmit == trueaffordances.submitjson
"affordances": {
"checkReadiness": "asc versions check-readiness --version-id v-123",
"listLocalizations": "asc version-localizations list --version-id v-123",
"submit": "asc versions submit --version-id v-123"
}请始终直接复制的内容 — 切勿手动构造提交命令。当时,响应结果中不会包含。
affordances.submitisReadyToSubmit == falseaffordances.submitTypical Workflow
典型工作流
bash
undefinedbash
undefined1. Find the version in PREPARE_FOR_SUBMISSION
1. 找到处于PREPARE_FOR_SUBMISSION状态的版本
asc versions list --app-id <APP_ID> --output table
asc versions list --app-id <APP_ID> --output table
2. Check readiness (use checkReadiness affordance from step 1 output)
2. 检查就绪状态(使用步骤1输出中的checkReadiness可用操作)
asc versions check-readiness --version-id <VERSION_ID> --pretty
asc versions check-readiness --version-id <VERSION_ID> --pretty
3a. Ready → submit using affordances.submit value
3a. 已就绪 → 使用affordances.submit的值提交
asc versions submit --version-id <VERSION_ID>
asc versions submit --version-id <VERSION_ID>
3b. Not ready → diagnose and fix (see Fix Guide below)
3b. 未就绪 → 排查并修复(请参阅下方修复指南)
undefinedundefinedFix Guide
修复指南
| Failing check | How to fix |
|---|---|
| Version is already live or in review — create a new version with |
| Link a build: |
| Build is still processing — wait and re-check, or upload a new build |
| Build expired — upload a new build with |
| Set up pricing in App Store Connect web UI (no |
| |
| 未通过的检查项 | 修复方法 |
|---|---|
| 版本已上线或正在审核中 — 使用 |
| 关联构建包: |
| 构建包仍在处理中 — 等待后重新检查,或上传新的构建包 |
| 构建包已过期 — 使用 |
| 在App Store Connect网页端设置定价(暂无 |
| |
CI Gate Script
CI校验关卡脚本
bash
#!/bin/bash
set -e
RESULT=$(asc versions check-readiness --version-id "$VERSION_ID")
IS_READY=$(echo "$RESULT" | jq -r '.data[0].isReadyToSubmit')
if [ "$IS_READY" = "true" ]; then
eval "$(echo "$RESULT" | jq -r '.data[0].affordances.submit')"
else
echo "NOT ready. Failing checks:"
echo "$RESULT" | jq '.data[0] | {stateCheck, buildCheck, pricingCheck}'
exit 1
fibash
#!/bin/bash
set -e
RESULT=$(asc versions check-readiness --version-id "$VERSION_ID")
IS_READY=$(echo "$RESULT" | jq -r '.data[0].isReadyToSubmit')
if [ "$IS_READY" = "true" ]; then
eval "$(echo "$RESULT" | jq -r '.data[0].affordances.submit')"
else
echo "未就绪。未通过的检查项:"
echo "$RESULT" | jq '.data[0] | {stateCheck, buildCheck, pricingCheck}'
exit 1
fi