appforge phase 10. Production iOS builds with EAS (an early one right after the skeleton, the final one after the audit), TestFlight, then attachment and submission for Apple review through the App Store Connect API, on the user's explicit go-ahead.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Ship?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mrasoahaingo-ship)
---
name: ship
description: appforge phase 10. Production iOS builds with EAS (an early one right after the skeleton, the final one after the audit), TestFlight, then attachment and submission for Apple review through the App Store Connect API, on the user's explicit go-ahead.
disable-model-invocation: true
---
# Phase 10: delivery
Load `expo:eas-app-stores` for up-to-date EAS details. `ASC=${CLAUDE_PLUGIN_ROOT}/scripts/asc.mjs`, `B=<bundle id>`.
Steps 1 to 4 run **twice**:
- **early**, in the background right after phase 2 (see `forge`): the build content does not matter, but the credentials, the App Store Connect record, the name reservation and `ascAppId` are settled while the app is being built;
- **final**, once the code is frozen after phase 6.
## Accounts and reused credentials
From the profile (`~/.config/appforge/profile.md`):
- `expo_account`, `apple_team_id`;
- `apple_provider`: the label to choose at "Select a Provider";
- to reuse rather than recreate: `distribution_certificate` (check its expiry date) and `asc_api_key`.
## Managed capabilities (Family Controls, for a Screen Time app)
An App Store build that carries `com.apple.developer.family-controls` cannot be signed until Apple grants the **Distribution** entitlement. Development builds sign without it.
- **The request is per team**, not per bundle ID: one form at developer.apple.com/contact/request/family-controls-distribution (name, email, Team ID, "Get Entitlement"). Send it at phase 2 and put the request ID under "waiting on the user"; it takes days to weeks. Never tell the user to send one form per extension.
- **Once Apple grants it** (an email "has been assigned to your account"): the user ticks **Family Controls (Distribution)** under Identifiers → each identifier that uses it (app, monitor, shield-config, shield-action) → Additional Capabilities. The ASC API key cannot do it, nor create those profiles: then `eas credentials:configure-build -p ios -e production` in the user's own terminal, signed in with the Apple account, answering **Y** to generate new profiles.
- **Check before building**: `node $ASC profiles $B --entitlement com.apple.developer.family-controls` must be all ✔ (identifiers that don't use the capability, a widget, are skipped). A profile made before the grant lacks the entitlement and the EAS build fails at signing 15 minutes later.
## Steps
1. `eas whoami`, then `eas init` in `apps/mobile` (first time only).
- After `--force`, keep only `extra.eas.projectId` and `owner` in `app.json`, because it copies in the whole evaluated `extra`.
- The Expo slug must not change afterwards, otherwise "Slug does not match".
2. **First build of an app only**: setting up credentials fails with `--non-interactive`. Run it in a pseudo-terminal driven by a file:
```bash
python3 -I ${CLAUDE_PLUGIN_ROOT}/scripts/pty-run.py /tmp/<slug>-creds.log /tmp/<slug>-creds.in -- \
eas credentials:configure-build -p ios -e production
# read the log, then answer by appending lines to the input file:
echo '<ENTER>' >> /tmp/<slug>-creds.in # tokens: <UP> <DOWN> <ENTER> <SPACE> <Y> <N>
```
In herdr, you can also run it with `hc run` and answer with `hc send`.
3. **Build**:
```bash
eas build -p ios --profile production --non-interactive --no-wait --json
```
It takes about 15 minutes, longer in the free-tier queue. Check `eas build:view <id> --json` every 5 minutes at most, and do other work in between.
- **Start it from a clean tree, before any temporary local edit** (a guest-mode flag for screenshots, debug logs): EAS uploads the working tree, uncommitted changes included. Once the build shows `IN_QUEUE`, the archive is sent and the tree can change.
- `autoIncrement` reserves the build number when the command starts: an interrupted `eas build` skips a number. Harmless; say it rather than look for the missing build.
- A fix found while a build is queued: cancel it (`eas build:cancel <id>`) rather than ship two builds in a row.
4. **TestFlight**: `eas submit -p ios --profile production --id <build>`.
- The first time, run it in the pseudo-terminal: it creates the App Store Connect record, which reserves the name, and the internal "Team (Expo)" group.
- Then put `ascAppId` and `appleTeamId` in `eas.json`: later uploads run non-interactively.
- Status: `eas submit:status -p ios --profile production --json --non-interactive`. Apple's processing takes 10 to 45 minutes.
5. **Variables**: the `production` profile declares `"environment": "production"`, so the build reads the `EXPO_PUBLIC_*` variables of that EAS environment. With none there, the build runs in guest mode only and the account is hidden: check the Clerk and Supabase production variables before the final build (`eas env:list production`). `apps/mobile/ios/` stays ignored by git: EAS regenerates the native project.
6. **Attach the final build** once Apple has processed it: `node $ASC build $B`, which picks the latest valid build of the version, or `--build <n>`. Then `node $ASC status $B` must be all ✔.
7. **Ask the user to test** the TestFlight build on their iPhone (5 minutes): the main flow, the app in the background (Live Activity), the widget, then the phone set to English. For a Screen Time app also: lock then end at once, open a picked app (it must open), the shield's "Unlock 15 min", a lock left to end with the app closed. Every bug found here is cheaper than one found by the reviewer.
- Before each final build, check the store captures and the review notes still match the build (`store` step 3): a UI change after phase 9 makes them wrong.
8. **Submission**: only once `status` is all ✔, the browser-only items of phase 9 are done, **and** the user has said to submit:
```bash
node $ASC submit $B --yes
```
`status` then shows "Waiting for Review". Review takes up to 48 hours.
- A refusal from Apple at this step names what blocks it (`submit` prints Apple's associated errors): usually the **App Privacy answers not published** (the user clicks "Publish" on App Privacy; an agent's click there can be refused by the permission check) or the content rights declaration (`push` sets it).
- **A later version** (1.0.3 after 1.0.2 is out): `push $B --version <new>` creates it, the screenshots of the live version carry over (`status` shows them), `build --build <n> --version <new>`, `submit` on the user's go-ahead. No new review video unless the account or a sensitive flow changed.
- **Replacing a version still waiting for review** by a newer build (one version in review at a time): `cancel`, then `push $B --version <new>` renames the withdrawn version (Apple allows one editable version) and fills it, `build --build <n> --version <new>`, `submit`. One review instead of two.
- **A blocking bug found while in review**: withdraw at once with the user's yes (`node $ASC cancel $B --yes`, state `DEVELOPER_REJECTED`, the version is editable again), fix, build, attach, submit again. Better than letting the reviewer hit it.
9. **After approval** (`status` shows `READY_FOR_DISTRIBUTION`):
- Website: official App Store badge, listing link and Smart App Banner (`site` step 4), then redeploy and check online.
- **Is it really out?** `node ${CLAUDE_PLUGIN_ROOT}/scripts/store-rank.mjs --repo <repo> --write` (reads `store/rank-keywords.json`) checks the app exists in each tracked storefront and records its position on each search as the baseline. Missing from every EU storefront only: open the app's Pricing and Availability > Manage; "Trader status not provided" means the app is declared trader while the account's verification is pending. A free version can be declared **non-trader for this app** (App Compliance), on the user's yes (`store` step 6); tell the user, it is theirs. Rerun 2 to 3 days after each release.
The public lookup lags behind an approval by up to a day (Grassling 1.0.2: still "Grassling 1.0" the next morning): judge names and versions on the next day's run, availability at once.
- If the live title carries no searched word (a 1.0 that skipped `store` step 1), prepare a **1.0.1 for search** at once: `asc.mjs push $B --version 1.0.1` creates the version and is the only way to change title and subtitle; new screenshots in search order; a fresh build attached (`eas build` from a clean tree, `eas submit`, `asc.mjs build $B --build <n> --version 1.0.1`); submission on the user's go-ahead.
- `docs/DISTRIBUTION.md` in the app repo: the live link, what the next version changes for search, the next levers (ratings, Custom Product Pages per search, Product Page Optimization on the first screenshot, In-App Events), free launch channels, and the Vercel state.
## Done when
- The final build is on TestFlight and attached, with its link in the log.
- Either the version is "Waiting for Review", or the exact list of what is missing to submit is under "waiting on the user".