에이전트 명령어

빌드 업로드와 조회, TestFlight 그룹과 테스터, 빌드별 릴리스 노트, 로컬 IPA와 패키지 검사, 샌드박스 테스터를 다루는 asc 명령입니다.

이 asc 명령 그룹은 만들어진 빌드를 다룹니다. 빌드를 업로드하고, Apple의 처리가 끝나길 기다리고, TestFlight 테스터에게 전달합니다. Apple 팀 선택(--auth), 출력, 페이지네이션, --confirm, 종료 코드는 asc 페이지에 설명된 대로 동작합니다.

AirBuild에서는 runbuild --sign으로 서명된 .ipa를 만든 다음, asc publish testflight(asc: 심사와 출시 참고)나 asc builds upload로 업로드합니다.

아래 표의 주요 플래그에는 거의 모든 명령에 있는 플래그를 생략했습니다. --output과 --pretty(출력 참고), 목록 명령의 --limit, --next, --paginate(페이지네이션 참고), 그리고 Apple이 반환할 속성을 고르는 --…-fields 플래그입니다. 모든 플래그와 값, 예제는 asc <family> <subcommand> --help로 확인하세요. 하위 명령에 자체 하위 명령이 있으면 플래그 대신 그 목록을 적었습니다.

빌드 선택하기

빌드 하나를 대상으로 하는 명령은 --build-id BUILD_ID를 받거나, --app APP과 함께 다음 중 하나를 받습니다.

선택자 선택 대상
--latest 앱의 최신 빌드입니다. --version(마케팅 버전), --platform, --processing-state, --exclude-expired로 범위를 좁힐 수 있습니다.
--build-number N --platform P 해당 빌드 번호(CFBundleVersion)의 빌드입니다. 이때 --platform은 필수입니다.

이 명령들에서 --app은 앱 ID, 번들 ID, 정확한 앱 이름을 받습니다.

builds

App Store Connect의 빌드를 관리합니다.

하위 명령 설명 주요 플래그
list App Store Connect에 있는 앱의 빌드 목록을 표시합니다. --app, --beta-review-state, --build-number, --exclude-expired, --include, --not-expired, --platform, --processing-state, --sort, --version
count App Store Connect에 있는 앱의 전체 빌드 수를 셉니다. --app, --beta-review-state, --build-number, --exclude-expired, --not-expired, --platform, --processing-state, --version
next-build-number 앱의 다음 빌드 번호를 계산합니다. --app, --exclude-expired, --initial-build-number, --not-expired, --platform, --processing-state, --version
wait 빌드 처리가 끝날 때까지 기다립니다. --app, --build-id, --build-number, --fail-on-invalid, --latest, --platform, --poll-interval, --report-pending, --since, --timeout, --version
info 특정 빌드의 상세 정보를 표시합니다. --app, --build-id, --build-number, --exclude-expired, --include, --latest, --not-expired, --platform, --processing-state, --version
expire TestFlight 빌드를 만료시킵니다. --app, --build-id, --build-number, --confirm, --exclude-expired, --latest, --not-expired, --platform, --version
expire-all 앱의 TestFlight 빌드 여러 개를 만료시킵니다. --app, --confirm, --dry-run, --keep-latest, --older-than, --version
upload App Store Connect에 빌드를 업로드합니다. --app, --build-number, --checksum, --concurrency, --dry-run, --include-sensitive, --ipa, --locale, --pkg, --platform, --poll-interval, --test-notes, --verify-timeout, --version, --wait
uploads 빌드 업로드를 관리합니다. 하위 명령: list, view, delete, files
test-notes TestFlight “테스트할 내용” 노트를 관리합니다. 하위 명령: list, view, create, update, delete
app-encryption-declaration 빌드의 앱 암호화 신고를 가져옵니다. 하위 명령: view
groups 빌드의 TestFlight 베타 그룹을 봅니다. 하위 명령: list
update 빌드 속성을 업데이트합니다. --app, --build-id, --build-number, --exclude-expired, --latest, --not-expired, --platform, --uses-non-exempt-encryption, --version
add-groups TestFlight 배포를 위해 빌드에 베타 그룹을 추가합니다. --app, --build-id, --build-number, --confirm, --dry-run, --exclude-expired, --group, --latest, --not-expired, --platform, --skip-internal, --submit, --version
remove-groups 빌드에서 베타 그룹을 제거합니다. --app, --build-id, --build-number, --confirm, --exclude-expired, --group, --latest, --not-expired, --platform, --version
individual-testers 빌드의 개별 테스터를 관리합니다. 하위 명령: list, add, remove
app 빌드와 연결된 앱을 봅니다. 하위 명령: view
pre-release-version 빌드와 연결된 프리릴리스 버전을 봅니다. 하위 명령: view
icons 빌드의 아이콘 목록을 표시합니다. 하위 명령: list
beta-app-review-submission 빌드의 베타 앱 심사 제출을 봅니다. 하위 명령: view
build-beta-detail 빌드의 베타 상세 정보를 봅니다. 하위 명령: view
links 빌드의 관계 연결을 봅니다. 하위 명령: view
metrics 빌드 지표를 가져옵니다. 하위 명령: beta-usages
dsyms 하나 이상의 빌드에서 dSYM 파일을 다운로드합니다. --after-uploaded-date, --all, --app, --build-id, --build-number, --exclude-expired, --latest, --min-version, --not-expired, --output-dir, --platform, --poll-interval, --timeout, --version, --wait

builds upload

터미널 창
asc builds upload --app APP_ID --ipa App.ipa [--wait] [--test-notes "…" --locale en-US]
asc builds upload --app APP_ID --pkg App.pkg --version 1.0.0 --build-number 1
플래그 값 기본값 설명
--app 앱 ID. IPA라면 정확한 번들 ID나 이름도 가능 ASC_APP_ID 대상 앱입니다.
--ipa 경로 — iOS, tvOS, visionOS 빌드입니다.
--pkg 경로 — macOS 빌드입니다. --version과 --build-number가 필요합니다.
--version, --build-number 문자열 IPA에서 읽음 마케팅 버전과 빌드 번호입니다.
--platform IOS, MAC_OS, TV_OS, VISION_OS 자동 감지 플랫폼입니다.
--wait — 끔 Apple이 빌드 처리를 마칠 때까지 기다립니다. --poll-interval(기본값 30s).
--test-notes 텍스트 없음 TestFlight “What to Test” 노트입니다. 빌드가 나타날 때까지 기다립니다. --locale로 언어를 지정합니다.
--dry-run — 끔 파일을 보내지 않고 업로드만 예약합니다.
--verify-timeout 기간 0s(끔) 업로드 직후 Apple이 보고하는 실패를 그 시간 동안 지켜봅니다.
--concurrency 숫자 4 병렬 업로드 파트 수입니다.
--checksum — 끔 Apple이 제공하면 업로드 체크섬을 검증합니다.

builds wait

빌드 처리가 끝날 때까지 기다립니다. 빌드는 --build-id나, --app과 --latest / --build-number로 고릅니다(--since는 RFC 3339 시각 이후에 업로드된 빌드로 제한합니다). --timeout 기본값은 15m, --poll-interval은 30s입니다. --fail-on-invalid는 빌드가 INVALID가 되면 0이 아닌 코드로 종료합니다. --report-pending을 주면 시간 초과 시 실패하는 대신 대기 중인 상태와 다시 이어 갈 명령을 출력하고 7로 종료합니다.

기타 빌드 명령

  • builds next-build-number --app APP --version 1.2.3 --platform IOS는 사용 가능한 다음 빌드 번호를 출력합니다(빌드가 없으면 --initial-build-number, 기본값 1).
  • builds expire와 builds expire-all은 TestFlight에서 빌드를 제거합니다. 둘 다 --confirm(또는 --dry-run)이 필요합니다. expire-all에는 --older-than(90d, 2w 또는 날짜)이나 --keep-latest N이 필요하며, --version으로 마케팅 버전 하나로 제한할 수 있습니다.
  • builds add-groups --group "ID or name,…"은 빌드를 베타 그룹에 배포합니다. 외부 그룹이라면 --submit --confirm을 붙여 베타 앱 심사에 제출합니다. --skip-internal은 내부 그룹을 무시하고, --dry-run은 미리 보기입니다. 보내기 전에 빌드가 처리 완료되었고 만료되지 않았는지, 외부 그룹이라면 암호화와 베타 심사 상태까지 확인하며, 확인할 수 없으면 중단합니다.
  • builds update --uses-non-exempt-encryption=false는 빌드의 수출 규정 준수 질문에 답합니다.
  • builds dsyms --build-id ID --output-dir ./dsyms는 dSYM 파일을 다운로드합니다.

testflight

TestFlight 워크플로를 관리합니다.

하위 명령 설명 주요 플래그
groups TestFlight 그룹을 관리합니다. 하위 명령: list, create, view, app, recruitment, compatibility, edit, add-testers, remove-testers, builds, testers, links, delete
testers TestFlight 테스터를 관리합니다. 하위 명령: list, view, add, export, import, remove, add-groups, remove-groups, add-builds, remove-builds, remove-apps, links, apps, groups, builds, metrics, invite
feedback TestFlight 피드백을 관리합니다. 하위 명령: list, view, delete
crashes TestFlight 충돌 제출을 관리합니다. 하위 명령: list, view, delete, log
agreements TestFlight 약관을 관리합니다. 하위 명령: list, view, edit
notifications TestFlight 알림을 보냅니다. 하위 명령: send
review TestFlight 심사 정보를 관리합니다. 하위 명령: view, app, edit, submit, submissions
distribution TestFlight 배포 설정을 관리합니다. 하위 명령: view, build, edit
recruitment TestFlight 모집 기준을 관리합니다. 하위 명령: options, set, delete
metrics TestFlight 지표를 가져옵니다. 하위 명령: public-link, group-testers, app-testers
config TestFlight 구성을 내보냅니다. 하위 명령: export
app-localizations TestFlight 앱 현지화를 관리합니다. 하위 명령: list, view, app, create, update, delete
pre-release 프리릴리스 버전을 관리합니다. 하위 명령: list, view, app, builds, links

build-bundles

빌드 번들과 App Clip 데이터를 관리합니다.

하위 명령 설명 주요 플래그
list 빌드의 빌드 번들 목록을 표시합니다. --build-id
file-sizes 빌드 번들 파일 크기 데이터를 관리합니다. 하위 명령: list
app-clip 빌드 번들의 App Clip 데이터를 관리합니다. 하위 명령: cache-status, debug-status, invocations

build-localizations

빌드 릴리스 노트 현지화를 관리합니다.

하위 명령 설명 주요 플래그
list 빌드의 릴리스 노트 현지화 목록을 표시합니다. --build-id, --locale
view ID로 현지화를 봅니다. --id
create 빌드의 현지화를 만듭니다. --build-id, --locale, --whats-new
update ID로 현지화를 업데이트합니다. --id, --whats-new
delete ID로 현지화를 삭제합니다. --confirm, --id

distribute

iOS 배포 산출물을 계획, 실행, 조회, 게시합니다.

하위 명령 설명 주요 플래그
inspect IPA가 릴리스 테스트 배포에 준비되었는지 검사합니다. --include-devices, --ipa
prepare 변경 불가능하고 제공자에 독립적인 배포 번들을 준비합니다. --channel, --ipa, --output-dir, --source-revision, --source-url, --title
publish 설치 가능한 번들을 직접 소유한 S3 호환 엔드포인트에 게시합니다. --access, --addressing-style, --bucket, --bundle-dir, --download-endpoint, --download-grace, --endpoint, --link-path, --prefix, --public-base-url, --receipt, --region, --url-ttl, --verify-timeout
plan 읽기 전용이며 해시로 고정된 배포 계획을 만듭니다. --archive-path, --config, --plan, --state-dir
apply 정확히 하나의 배포 계획을 적용합니다. --confirm, --plan
resume 이전에 확인한, 복구 가능한 배포 실행을 이어 갑니다. --run, --state-dir
status 네트워크나 키체인 접근 없이 배포 실행을 읽습니다. --run, --state-dir
verify 게시된 산출물을 다시 검증하고, 선택적으로 기기 설치를 관찰합니다. --device, --run, --state-dir, --timeout

sandbox

App Store Connect의 샌드박스 테스터를 관리합니다.

하위 명령 설명 주요 플래그
list 샌드박스 테스터 목록을 표시합니다. --email, --territory
view 샌드박스 테스터 상세 정보를 봅니다. --email, --id
update 샌드박스 테스터를 업데이트합니다. --email, --id, --interrupt-purchases, --subscription-renewal-rate, --territory
clear-history 샌드박스 테스터의 구입 기록을 지웁니다. --confirm, --email, --id

ipa-info

Apple에 연결하지 않고 로컬 .ipa를 검사합니다. 번들 식별 정보, 버전, 서명자, 중첩 번들, 그리고 선택적으로 내장 프로파일을 확인합니다.

터미널 창
asc ipa-info --path ./App.ipa [--include-profile] [--include-entitlements] [--verify-signature]
플래그 기본값 설명
--path 필수 대상 .ipa입니다.
--include-profile 끔 내장 프로비저닝 프로파일 요약을 추가합니다.
--include-entitlements 끔 프로파일의 entitlement를 추가합니다.
--verify-signature 끔 메인 실행 파일의 코드 서명과 인증서 체인을 Apple 루트 인증서 기준으로 오프라인 검증합니다. 이때 signatureVerification은 valid, invalid, untrusted-chain(ad-hoc 서명 포함), expired, unsupported 중 하나이며, valid가 아니면 1로 종료합니다.

status는 메타데이터를 읽었으면 readable, 내장 프로파일이 없으면 unsigned입니다. codeSignature는 signed, ad-hoc, unsigned, unreadable 중 하나이며, architectures는 각 슬라이스를 나열합니다. 읽을 수 없는 아카이브나 내장 프로파일이 없는 IPA는 결과를 출력한 뒤 1로 종료합니다.

pkg-info

Apple에 연결하지 않고 로컬 플랫 .pkg(컴포넌트 패키지 또는 Mac App Store 업로드용 같은 제품 아카이브)를 검사합니다. 제품 식별자, 버전, 설치 위치, 컴포넌트 번들 ID, 서명자를 확인합니다.

터미널 창
asc pkg-info --path ./App.pkg [--verify-signature]

packageSignature는 signed, unsigned, unreadable 중 하나이며, 서명되지 않은 패키지도 0으로 종료합니다. --verify-signature는 패키지 서명, 포함된 파일의 체크섬, 설치 프로그램 인증서 체인을 오프라인으로 검사하며, valid가 아니면 1로 종료합니다. Developer ID 서명자의 경우, 인증서가 2027년 2월 1일에 만료되는 Apple 인증 기관에서 발급되었으면 signer.developerIdAuthorityStatus가 affected(이런 패키지는 그날부터 설치되지 않으며 경고가 출력됨), 그렇지 않으면 not-affected입니다.

예제

runbuild로 만든 서명된 빌드를 업로드하고 처리가 끝날 때까지 기다립니다.

터미널 창
asc builds upload --app "APP_ID" --ipa ./App.ipa --wait

최신 빌드를 외부 그룹에 배포하고 베타 심사에 제출합니다.

터미널 창
asc builds add-groups --app "APP_ID" --latest --group "External Testers" --submit --confirm

이메일로 테스터를 그룹에 추가합니다.

터미널 창
asc testflight testers add --app "APP_ID" --email "tester@example.com" --group "Beta"

업로드 전에 IPA를 확인합니다.

터미널 창
asc ipa-info --path ./App.ipa --include-profile --verify-signature --output table