Commit Graph
20 Commits
Author SHA1 Message Date
Brennan Benson 7b4e10b104 fix(mobile-ios): pin fastlane and gate the Fastfile in CI (#15092)
* fix(mobile-ios): pin fastlane and gate the Fastfile in CI

The ios-distribute job failed on every run from 2026-08-10 to 2026-08-13
because distribute_testflight passed distribute_only without app_platform,
so pilot fell through to an interactive platform prompt on ubuntu. No CI
check loads the Fastfile, so external testers got nothing for six days.

- Pin fastlane 2.238.0 and commit mobile/Gemfile.lock so ios-build (macos)
  and ios-distribute (ubuntu) cannot resolve different versions ~25 minutes
  apart. Fixes the Gemfile comment's dead mobile-build.yml reference.
- Add a Fastfile smoke check (bundle exec fastlane lanes) plus a static
  contract test for the TestFlight lane arguments to Mobile Checks.
- Set reject_build_waiting_for_review so a superseded same-train build in
  beta review stops blocking the submission.

* fix(mobile-ios): install the pinned Gemfile.lock in frozen mode

Without frozen, a lockfile that drifts from the Gemfile is silently
re-resolved per job, which is the version split the pin exists to prevent.

* test(mobile-ios): anchor the TestFlight argument contract against an empty selection

* chore(mobile-ios): canonicalize the lockfile platforms

Bundler's own normalization drops arm64-darwin-25 as redundant with the
versionless arm64-darwin, and the ubuntu runners resolve x86_64-linux-gnu.
2026-08-17 12:03:20 -07:00
Brennan Benson 0ae0fd0434 fix(mobile-ios): set app_platform for distribute-only TestFlight upload (#14087) 2026-08-12 16:23:18 -07:00
Jinjing 418fbb3192 fix(mobile-ios): gate release on TestFlight distribution (#13419) 2026-08-10 01:47:36 -07:00
Brennan Benson 20aeb0cb99 Prepare mobile 0.0.42 and fix TestFlight CI hang (#12961)
* Bump mobile app.json to 0.0.42

* fix(mobile-ios): stop TestFlight CI from waiting on ASC processing

0.0.42 builds 1–2 uploaded successfully then hung for hours polling
processing with no Ready build and no Apple email. Exit after upload
and cap the job at 90m so the next cut does not repeat that hang.

* fix(mobile-ios): fully skip Pilot wait (no changelog)

Pilot only returns immediately after upload when changelog is nil;
passing notes re-enters the ASC build-list poll.
2026-08-07 16:52:37 -07:00
Neil 3830851a83 fix(mobile): unblock iOS releases and prepare 0.0.36 (#10888)
* fix(mobile): block iOS uploads below the last shipped App Store version

The closed-train guard looked up each candidate version's own App Store
record, but a version only gets one once it is submitted for review.
0.0.34 reached TestFlight and was never submitted, so it had no record,
nothing looked closed, and the patch-bump walk stopped there — while
0.0.35 had already shipped. Apple rejected the upload after a 24-minute
build (90186 closed train, 90062 needs a higher CFBundleShortVersionString).

Fetch the highest closed version once and treat everything at or below it
as closed, comparing semver numerically so 0.0.10 outranks 0.0.9.

Also read appVersionState alongside appStoreState: the latter is
deprecated in App Store Connect API 3.3 and renames the shipped state to
READY_FOR_DISTRIBUTION, so reading only the old field would silently find
zero closed versions once Apple stops populating it.

* chore(mobile): prepare 0.0.36

app.json sat at 0.0.32 while 0.0.35 shipped on the App Store, because
release versions are resolved on the runner and never committed back.
Close the four-version drift so the checked-in version matches reality
and the iOS release no longer depends on the closed-train walk to find
an open version.

Bump Android versionCode 8 -> 9 in the same commit: the version is shared
between platforms, and shipping 0.0.36 with the code that already shipped
for 0.0.32 produces an APK that cannot install over the released build.
2026-07-27 01:53:11 -07:00
OrcaWinandOrcaWin 801ff57e83 fix(mobile): unblock iOS releases (#10224)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-07-23 14:23:44 -07:00
Brennan BensonandOrca 584cec78c3 fix(mobile): fail fast when iOS App Store train is closed (#6633)
Co-authored-by: Orca <help@stably.ai>
2026-06-29 14:08:23 -07:00
Jinwoo HongandOrca 674e1ccee9 Provide TestFlight changelog for external sharing (#6006)
Co-authored-by: Orca <help@stably.ai>
2026-06-21 16:12:08 -07:00
Jinwoo HongandOrca f524fdf8bb Fix mobile iOS Fastlane paths (#6004)
Co-authored-by: Orca <help@stably.ai>
2026-06-21 15:36:10 -07:00
Jinwoo HongandOrca f6b82829f4 Improve iOS mobile release versioning (#5994)
Co-authored-by: Orca <help@stably.ai>
2026-06-21 12:25:25 -07:00
Jinwoo HongandOrca b17d8fc293 Share iOS releases with TestFlight peeps (#5841)
Co-authored-by: Orca <help@stably.ai>
2026-06-19 15:49:00 -07:00
Jinwoo Hong c8f583c90a Set CODE_SIGN_IDENTITY to Apple Distribution for iOS archive
Pin CODE_SIGN_IDENTITY so the archive uses the imported distribution cert. Admin-merge: only repo-wide pr.yml break failing.
2026-06-16 00:28:47 -07:00
Jinwoo Hong 7bbea13e70 Set team + profile on iOS archive for manual signing
Pass DEVELOPMENT_TEAM/CODE_SIGN_STYLE/PROVISIONING_PROFILE_SPECIFIER to the archive. Admin-merge: only repo-wide pr.yml break failing.
2026-06-16 00:24:27 -07:00
Jinwoo Hong 8b05f1e631 Fix iOS Fastfile: read profile name from SIGH_NAME
Use SIGH_NAME instead of nonexistent SIGH_PROFILE_MAPPING. Admin-merge: only repo-wide pr.yml break failing.
2026-06-16 00:19:53 -07:00
Jinwoo Hong 4481e2fabf Use manual signing with explicit profile for iOS export
Fetch explicit profile via sigh + API key, export with manual signing against imported cert. Avoids cloud-signing permission error. Admin-merge: only repo-wide pr.yml break failing.
2026-06-16 00:15:45 -07:00
Jinwoo Hong 1f80d8bcd0 Fix iOS export signing: pass auth key to exportArchive
Add export_xcargs with ASC auth key so the export step can fetch the distribution profile. Admin-merge: only repo-wide pr.yml break failing.
2026-06-15 23:46:19 -07:00
Jinwoo Hong da386fae8c Fix iOS auth key: decode .p8 PEM from secret directly
Decode base64 ASC_API_KEY_P8 directly into the .p8 Tempfile so xcodebuild gets valid PEM. Admin-merge: only repo-wide pr.yml break failing.
2026-06-15 23:10:31 -07:00
Jinwoo Hong 3691267939 Fix iOS signing: pass App Store Connect API key to xcodebuild (#5476)
Feed xcodebuild the ASC API key via xcargs (-authenticationKeyID/IssuerID/Path) so -allowProvisioningUpdates can generate a profile. Materialize the .p8 from api_key[:key] to a Tempfile.

Merged with --admin: only failing check is the repo-wide pr.yml break, unrelated.
2026-06-15 23:06:31 -07:00
Jinwoo Hong b5e6390ad2 Split mobile release into separate iOS and Android workflows (#5475)
Splits the combined Mobile Release workflow into mobile-ios-release.yml (mobile-ios-v* tags) and mobile-android-release.yml (mobile-android-v* tags) so iOS App Store review no longer gates Android. Also fixes iOS signing by passing the App Store Connect API key to build_app so xcodebuild can provision via -allowProvisioningUpdates.

Merged with --admin: the only failing check is the repo-wide pr.yml '@/lib/utils' vitest break affecting all PRs, unrelated to this change.
2026-06-15 23:01:44 -07:00
Jinwoo Hong 6740c00351 Build and ship iOS to TestFlight from CI (#5468)
Adds an ios-build job to the Mobile Release workflow (build + sign + TestFlight upload on a macOS runner via fastlane + App Store Connect API key), and fixes a pre-existing Mobile Checks bug where the mobile typecheck needed root deps for ../src imports.

Merged with --admin: the only failing check is the repo-wide pr.yml '@/lib/utils' vitest resolution break affecting all open PRs, unrelated to this change.
2026-06-15 21:38:00 -07:00