Skip to content

#912 Fix iOS store screenshot capture - #932

Merged
ivanfenenko merged 1 commit into
mainfrom
fix/912-ios-store-screenshots-signing
Nov 1, 2026
Merged

ivanfenenko merged 1 commit into
mainfrom
fix/912-ios-store-screenshots-signing

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #912.

Problem

npm run store:screenshots -- --target ios failed every scene with "Home session list did not appear".

  • The script passed CODE_SIGNING_ALLOWED=NO to xcodebuild test. An unsigned app cannot write the Keychain (status -34018), so StoreScreenshotSeeder never saved the fixture Connection Profile and the app stayed on "Connect to your server". The error was only logged.
  • With signing back on, testChanges still failed. The seeder marks onboarding complete, so the app treats the run as an existing install and shows the Timeline Style picker (Session Chat: one-time Timeline Style picker for updated installs #805) over the chat. The overflow menu could not be reached.

Changes

  • scripts/store-screenshots.mjs: drop CODE_SIGNING_ALLOWED=NO so the run uses the project's default (automatic) signing. No CI workflow runs this script.
  • StoreScreenshotSeeder.seed() returns its failure. StoreScreenshotSeedingHost shows it (storeScreenshotSeedFailed), and waitForHome fails with that text, e.g. Store screenshot seed failed: writeFailed(status: -34018). Keychain status -34018 means the test build is unsigned.
  • The seeder sets the Timeline Style to Activity Card, which is what a new install gets. It also marks the picker as done.

Checks

  • npm run store:screenshots -- --target ios --appearance dark on the iPhone 16 Pro Max (iOS 26.5) simulator: all five scenes captured (01-home through 05-settings), checked by eye.
  • With CODE_SIGNING_ALLOWED=NO put back temporarily, --scene home fails with the seed-failure message above instead of timing out.
  • No UI change in the app. The seeding host only exists in DEBUG store-screenshot runs.

Risks / Follow-ups

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Drop CODE_SIGNING_ALLOWED=NO from the store-screenshots xcodebuild run: an
unsigned build cannot write the Keychain (-34018), so the seeder never saved
the fixture profile and every scene timed out on the connect screen.

The seeder now returns its failure and the host shows it, so the UI test
fails with the cause instead of "Home session list did not appear".

It also settles the Timeline Style to Activity Card: past onboarding reads
as an existing install, whose Timeline Style picker covered the chat and
broke the Changes scene.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivanfenenko
ivanfenenko merged commit 5be7d6e into main Nov 1, 2026
@ivanfenenko
ivanfenenko deleted the fix/912-ios-store-screenshots-signing branch November 1, 2026 22:08

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: no finding that 2+ of 3 passes agreed on.

1 finding(s) from a single pass, not posted
  • ios/OpenCode Mobile/OpenCode MobileUITests/StoreScreenshotUITests.swift:122 low: Seed failure message always blames unsigned build (muse-spark-1.3-contributor)

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.051

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant