Upload a build
upload_buildUpload an exported .ipa or .pkg to App Store Connect so it can be processed and distributed to testers. Each upload needs a new, higher build number.
Instructions
Uploads an exported .ipa (or macOS .pkg) to App Store Connect. method "api" uses Apple's build upload API (no Xcode needed); "altool" shells out to xcrun altool on a Mac. Make the .ipa first with xcodebuild archive + xcodebuild -exportArchive (method app-store-connect, destination export). Every upload needs a new, higher build number (CFBundleVersion). After it's processed, use distribute_build to send it to testers.
Changes App Store Connect (needs ASC_WRITE=1). Safe to re-run: steps already done are skipped.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | App ID, bundle ID or exact app name. Defaults to ASC_APP_ID, or to the only app the key can see. | |
| file | Yes | Absolute path to the .ipa or .pkg. | |
| method | No | api | |
| dry_run | No | If true, return the plan without changing anything. | |
| version | No | CFBundleShortVersionString, e.g. 1.2. Read from the .ipa if omitted (macOS only). | |
| platform | No | Platform. Defaults to IOS. | |
| build_number | No | CFBundleVersion. Read from the .ipa if omitted (macOS only). | |
| wait_minutes | No | Minutes to wait for Apple's processing before returning (0-30, default 0). Processing usually takes 5-30 minutes; if it isn't done in time, the result says how to resume. |