Skip to content

fix(settings): seed Root.plist so acknowledgements actually appear in iOS Settings - #748

Merged
wei18 merged 1 commit into
mainfrom
fix/721-acknowledgements-rootplist
Jul 10, 2026
Merged

wei18 merged 1 commit into
mainfrom
fix/721-acknowledgements-rootplist

Conversation

@wei18

@wei18 wei18 commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Closes #721 — the owner-reported bug: no Acknowledgements page under iOS Settings → app. Two coupled root causes, both fixed:

Bug A — no Settings.bundle entry point (why the page NEVER showed, since #433)

LicensePlist only generates the child-pane content file; iOS requires a Root.plist entry point to display ANY custom pane — and the whole Settings.bundle dir was gitignored/regenerated, so nobody ever seeded one. Fix: commit a minimal Root.plist per app directly containing the PSChildPaneSpecifier { File: com.mono0926.LicensePlist } entry (LicensePlist never writes Root.plist, so the seed is stable — verified sha256-identical across re-gens), plus a precise .gitignore exception whitelisting only Root.plist (live-tested: generated files stay ignored).

Bug B — packagePaths resolved relative to the config dir

license_plist.yml's packagePaths resolve relative to App/<App>/ (confirmed by reading LicensePlist's Config source, not trial-and-error), so a workspace-less local gen:acknowledgements found no packages and emitted an empty list. Fixed with ../../Packages/... paths. Ship-state conclusion: the shipped license DATA was never empty — CI and tf:upload both run gen after the workspace exists, and LicensePlist's *.xcworkspace fallback filled the list; only the display entry point was missing.

Verification

  • Sim end-to-end (Debug build, iPhone 17 Pro): Settings → Apps → Sudoku → Acknowledgements appears, taps through to 6 real versioned licenses, license body renders (screenshots in session scratchpad; Leader eyeballed).
  • plutil -lint both plists; workspace-less gen now yields 7 (Sudoku) / 3 (MS) specifiers; .gitignore exception live-tested.
  • Reviewer verified plist symmetry, the File-key spelling, the gitignore pattern with a fake generated file, and each packagePath's existence.

Follow-ups (non-blocking, tracked in #747): MS Package.resolved parity for local gens, Settings.bundle string l10n (Root.strings mechanism), test-only deps appearing in the list.

🤖 Generated with Claude Code

Closes #721. Two coupled bugs kept the LicensePlist-generated
Acknowledgements page invisible / fragile:

Bug A - Settings.bundle had no Root.plist entry point. iOS requires
Root.plist as the Settings.bundle entry pane; without it Settings.app
shows no custom page at all, so the (correctly generated)
com.mono0926.LicensePlist.plist was never reachable. LicensePlist never
writes Root.plist itself (verified against its source + README: the
developer must add the PSChildPaneSpecifier manually). Fix: commit a
static Root.plist seed per app containing the
`PSChildPaneSpecifier { Title: Acknowledgements, File:
com.mono0926.LicensePlist }` entry, with a precise .gitignore negation
so only Root.plist is tracked while all generated bundle content stays
ignored. Verified LicensePlist re-runs leave the seed byte-identical
(force: true only rewrites its own output files).

Bug B - `packagePaths:` in both license_plist.yml resolved relative to
the config file's directory (App/<App>/), not the repo root (same rule
as outputPath, LicensePlist GeneralOptions.load(_:configBasePath:)), so
the configured Packages/... paths silently matched nothing. The list
was populated anyway on CI/tf:upload only because LicensePlist's
default `*.xcworkspace` CWD fallback picked up Game.xcworkspace's
Package.resolved after tuist generate - shipped archives were never
empty (Jul-8 archive: 7 real license entries) - but a bare
`mise run gen:acknowledgements` without a generated workspace emitted
an EMPTY list. Fix: climb to the repo root with `../../Packages/...`.
Verified with the workspace hidden: Sudoku now lists 6 licenses +
group header; Minesweeper lists AdMob + UMP (the only third-party SDKs
in its committed resolved graph - Packages/MinesweeperKit has no
committed Package.resolved). CI is unaffected: ci_post_clone.sh cd's to
the repo root and generates the workspace before gen runs.

End-to-end verified on iPhone 17 Pro simulator: built Sudoku.app
carries Settings.bundle/Root.plist + populated LicensePlist plists;
Settings.app -> Apps -> Sudoku shows the Acknowledgements row and the
license list renders with real entries.

Co-Authored-By: Claude Fable 5 <[email protected]>
@wei18
wei18 enabled auto-merge (squash) July 10, 2026 12:22
@wei18
wei18 merged commit 382eabd into main Jul 10, 2026
4 checks passed
@wei18
wei18 deleted the fix/721-acknowledgements-rootplist branch July 10, 2026 12:23
wei18 added a commit that referenced this pull request Jul 10, 2026
Records the composition rename (#739/#745), settings-persistence
inventory + LastSelectionStore fill (#720/#746), the two-round
Acknowledgements diagnostic (#721/#748), the #700/#738 ASCRegister
apply closeout (11 achievements + 77 loc, 21 leaderboard-loc UPDATEs),
and the #713 upkeep-triage disposition including the unreconciled
13-vs-15 finding-count discrepancy.

Co-authored-by: Claude Fable 5 <[email protected]>
@wei18 wei18 mentioned this pull request Jul 12, 2026
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.

bug: acknowledgements page not visible in iOS Settings for the installed app

1 participant