Skip to content

fix(minesweeper): tf:upload regenerates acknowledgements + add Minesweeper.storekit (#433) - #437

Merged
wei18 merged 1 commit into
mainfrom
fix/433-ms-acks-and-storekit
Jun 9, 2026
Merged

wei18 merged 1 commit into
mainfrom
fix/433-ms-acks-and-storekit

Conversation

@wei18

@wei18 wei18 commented Jun 9, 2026

Copy link
Copy Markdown
Owner

Closes #433 — two Minesweeper build-parity gaps.

Part A — tf:upload regenerates the Acknowledgements bundle (the bug)

mise-tasks/tf/upload archived locally but never ran gen:acknowledgements, so the gitignored Settings.bundle (normally regenerated by Xcode Cloud's ci_post_clone.sh) was absent at archive time → installed builds showed an empty iOS Settings → Acknowledgements page.

The script now runs three phases in the order both LicensePlist and Tuist require:

  1. tuist install — resolve packages (LicensePlist enumerates the dependency graph from the resolved SwiftPM state; with no Package.resolved it emits an empty list).
  2. gen:acknowledgements — populate the Settings.bundle from the resolved graph.
  3. tuist generate — re-glob the now-populated bundle (the Settings.bundle/** resource glob captures file refs at generate time, not build time).
  4. archive — xcodebuild copies the populated bundle into the .app.

Latent regression fixed along the way

While fixing this I found a regression from #393: when the license_plist.yml configs were co-located under App/<App>/, their outputPath stayed App/<App>/Resources/Settings.bundle, but LicensePlist resolves outputPath relative to the config file's own directory — so the bundle was written to App/<App>/App/<App>/Resources/Settings.bundle, a path Tuist's resource glob never sees. Both configs corrected to the config-dir-relative Resources/Settings.bundle. (Never caught before because the bundle is gitignored and its only consumer is exactly this archive path.)

Part B — Minesweeper.storekit for Simulator IAP testing (parity)

Added App/Minesweeper/Resources/Minesweeper.storekit (mirrors Sudoku.storekit; productID com.wei18.minesweeper.iap.remove_ads, referenceName "Remove Ads", 2.99, same display config, fresh UUIDs) and wired it into the Minesweeper scheme's runAction options(storeKitConfigurationPath:). Fixes Simulator/Xcode IAP testing only; the TestFlight "product not found" is the separate ASC-data issue #432.

Verification

Part A — archive evidence (mise run tf:upload minesweeper ios --archive-only):

The archived Minesweeper.app/Settings.bundle/com.mono0926.LicensePlist.plist is populated with 7 real license entries (not empty):

Licenses (PSGroupSpecifier)
swift-custom-dump (1.5.0)
GoogleMobileAds (13.4.0)
GoogleUserMessagingPlatform (3.1.0)
swift-snapshot-testing (1.19.2)
swift-syntax (603.0.1)
xctest-dynamic-overlay (1.9.0)
Yams (5.4.0)

plus the matching child-pane detail plists under Settings.bundle/com.mono0926.LicensePlist/. Pipeline log confirmed ordering: tuist install → regenerate Acknowledgements → re-generate project → Archive Succeeded → Export Succeeded.

Other gates:

  • mise exec -- tuist generate --no-open succeeds — the new .storekit path resolves and the scheme is valid.
  • mise run scan:l10n PASS (both catalogs 0 placeholders, all 7 locales complete).
  • git status clean except the 5 intended files; build/, the generated Settings.bundle, and Game.xcworkspace remain gitignored.

🤖 Generated with Claude Code

…eeper.storekit (#433)

Two MS build-parity gaps.

Part A — tf:upload now regenerates the Acknowledgements Settings.bundle.
mise-tasks/tf/upload archived locally but never ran gen:acknowledgements, so the
gitignored Settings.bundle (normally regenerated by Xcode Cloud's
ci_post_clone.sh) was absent at archive time → installed builds showed an empty
iOS Settings → Acknowledgements page. The script now runs the three phases in
the order both LicensePlist and Tuist require: tuist install (resolve) →
gen:acknowledgements (populate bundle from the resolved SwiftPM graph) → tuist
generate (re-glob the now-populated bundle) → archive.

While fixing this, found a latent regression from #393: when the license_plist
configs were co-located under App/<App>/, their outputPath stayed
`App/<App>/Resources/Settings.bundle` but LicensePlist resolves outputPath
relative to the config file's own directory, so the bundle was written to
`App/<App>/App/<App>/Resources/Settings.bundle` — a path Tuist's resource glob
never sees. Corrected both configs to the config-dir-relative
`Resources/Settings.bundle`.

Part B — added App/Minesweeper/Resources/Minesweeper.storekit (mirrors
Sudoku.storekit; productID com.wei18.minesweeper.iap.remove_ads, Remove Ads,
2.99) and wired it into the Minesweeper scheme's runAction options via
storeKitConfigurationPath, so Simulator/Xcode IAP testing finds the product.
Simulator-only; the TestFlight "product not found" is a separate ASC-data issue
(#432).

Verification:
- mise run tf:upload minesweeper ios --archive-only → archived
  Minesweeper.app/Settings.bundle/com.mono0926.LicensePlist.plist lists 7 real
  entries (GoogleMobileAds 13.4.0, GoogleUserMessagingPlatform 3.1.0, Yams,
  swift-syntax, swift-snapshot-testing, swift-custom-dump, xctest-dynamic-overlay)
  + matching child-pane plists — not empty.
- mise exec -- tuist generate --no-open succeeds (new .storekit path resolves).
- mise run scan:l10n PASS.

Co-Authored-By: Wei18 <[email protected]>
Co-Authored-By: Claude Opus 4.8 <[email protected]>
@wei18
wei18 merged commit e0c94ce into main Jun 9, 2026
4 checks passed
@wei18
wei18 deleted the fix/433-ms-acks-and-storekit branch June 9, 2026 06:20
wei18 added a commit that referenced this pull request Jun 9, 2026
…f:upload acks step (#442)

Meeting log for the GameAudio P1/P2 + Minesweeper TestFlight-QA + ops-skills session. Also updates the local-testflight-upload skill pipeline to include the gen:acknowledgements step added in #437 (order: install -> gen -> generate -> archive).

Co-authored-by: Claude Opus 4.8 <[email protected]>
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.

fix(minesweeper): empty Acknowledgements page in installed builds — tf:upload skips gen:acknowledgements

1 participant