DEV Community

Cover image for I let Claude Code run an app release into three stores. Here is what broke.

I let Claude Code run an app release into three stores. Here is what broke.

Sergey Mochalin on December 02, 2026

I make a small calorie-tracking app, Food Energy. It is in the App Store, Google Play and RuStore, and every update means pasting the same "What's ...
Collapse
 
xenoci_com profile image
xenoci.com •

The associatedErrors one is a classic. The top-level message is useless and the real reasons are nested, and it's the same pattern for missing age rating answers, a missing App Privacy section, or a build that's still processing. Surfacing meta.associatedErrors by default is one of the better fixes in that list.

A related trap you might hit later: when a version has a new language, Apple also expects screenshots for every required display size in that language, or it falls back silently in some places and refuses in others. Checking that each new locale has the full screenshot set before "send for review" saves a round trip.

Curious how you handle the build itself, does the agent pick which build is attached to the version, or is that always your call?

Collapse
 
sergey_mochalin profile image
Sergey Mochalin •

The build is always my call. The agent has no tool for it: I upload from Xcode, pick the processed build on the version's page, and the "send for review" button stays inactive until one is chosen. The agent's part ends at texts and screenshots.

Thanks for the screenshot trap. I didn't hit it because both new languages got the full set for iPhone and iPad in the same run, and the preview lists what each language and display has now. But nothing stops me from sending a version where a new language has an empty display, so a check for that before "send for review" is in the plans.

Collapse
 
xenoci_com profile image
xenoci.com •

That's a sensible split. Keeping the build pick manual also means the agent can never attach a build that's still processing or the wrong train.

For the empty-display check, the App Store Connect API gives it to you in three calls, so the agent can run it as the last step before you press the button:

  1. GET /v1/appStoreVersions/{id}/appStoreVersionLocalizations lists every locale on the version.
  2. For each, GET /v1/appStoreVersionLocalizations/{id}/appScreenshotSets returns one set per display type it has (APP_IPHONE_67, APP_IPAD_PRO_3GEN_129, ...).
  3. For each set, GET /v1/appScreenshotSets/{id}/appScreenshots and fail if it's empty, or if any screenshot's assetDeliveryState.state isn't COMPLETE. An upload that's still processing or FAILED looks fine in the list but blocks review.

Compare against the primary locale's display types rather than a hard-coded list. Then a new language missing iPad is caught, and an app that doesn't ship iPad at all doesn't false-alarm. One caveat: a set that exists but has 0 screenshots is the case Apple refuses. A set that doesn't exist at all may fall back to the primary language's screenshots, so report both separately rather than treating them the same.

Thread Thread
 
sergey_mochalin profile image
Sergey Mochalin •

This is more than I asked for, thank you. Two things in it I wouldn't have got to on my own: checking assetDeliveryState instead of trusting the list, and comparing against the primary locale's display types so an app with no iPad doesn't false-alarm.

The split between an empty set and a missing one is the useful part for the person reading the result: one is a refusal, the other is a silent fallback they may or may not want. I'll keep them as two separate lines when this check gets built.

Collapse
 
kenimo49 profile image
Ken Imoto •

This is exactly what I've been trying to do at work. Thanks for sharing!
Publishing Kindle editions across four languages taught me the same lesson the hard way: a release pipeline is a chain, and it's only as strong as its weakest link.
A single bad character set can quietly break metadata for an entire market the way your emoji issue did across locales.
Any step that writes directly to a live listing needs a preview diff in front of it.

Collapse
 
sergey_mochalin profile image
Sergey Mochalin •

Agreed, and the character set case is a good one: the store accepts the request and one market quietly ends up with nothing. The preview diff was there from the start for me. What it didn't save me from was its own default, with every difference ticked. So I'd add one thing to your rule: a preview diff in front of the write, and nothing selected in it until a person picks.

Collapse
 
himanshu_dhakar_65fcb1284 profile image
himanshu dhakar •

We approve each write. Anything that goes to a store or a repo waits for a person's OK on the exact values, and the approval is logged next to what actually ran.

The bug that taught us more was after the approval. One run published two store languages. Our record marked both as done, but only one of them was in the store. The other was stranded, and nothing went red. Now "done" for a store write is checked per language against what the store returns, not against our own log. Your emoji case is the same shape: one bad field and a whole language silently didn't save. Did you end up checking the store after the write, or only before it?

Collapse
 
sergey_mochalin profile image
Sergey Mochalin •

Both, but less strictly than you do. Each write comes back per language with "ok" or the store's own reason, and the preview is a fresh read of the store, so running it again after a write lists whatever still differs.

What I don't have is your rule as a rule: "done" decided only by reading the store back, per language. Two languages marked done with one stranded is exactly what a log-based "done" allows. A stricter check along those lines is in the plans, thanks.

Collapse
 
junfengzhou01 profile image
Junfeng Zhou •

Approving the plan once with the exact values, then stopping only on writes that differ from that plan, keeps routine releases fast while anything the agent changed along the way still gets a look.

Collapse
 
sergey_mochalin profile image
Sergey Mochalin •

That's close to where I ended up. The preview is the plan, the write recomputes it at the moment it runs, and I name the languages and fields I agreed to, so anything outside them isn't written. Stopping only on the difference is the part I'd like to get to: right now a changed value means a new preview instead of one question.

Collapse
 
chwaqarr profile image
Ch Waqar •

Haha the emoji breaking a whole language got me. Good warning before I try this myself.

Collapse
 
sergey_mochalin profile image
Sergey Mochalin •

It got me too, after the fact. If you try it: check what the store accepts per field before the write, and don't send a language's texts as one all-or-nothing request.