mirror of
https://github.com/stablyai/orca.git
synced 2026-10-16 16:03:26 +00:00
The iOS release lane auto-increments the TestFlight build number but never the marketing version. Once a version is submitted/approved/released its train closes, so any further build upload is rejected by Apple (~20 min in) with altool 90186 / 90062 — with no signal until then and no guard beyond a manual 'bump patch' checkbox the dispatcher had to remember to tick. prepare_release_version now checks the App Store version state via Spaceship::ConnectAPI before building. If the resolved version's train is closed it auto-bumps the patch (advancing past any further closed versions), preserving normal multi-build beta iteration on an open version. An explicit release_version override that's already closed fails fast with a clear message instead of being silently overridden. Co-authored-by: Orca <help@stably.ai>