Skip to content

feat(signing): automatic signing with gitignored DEVELOPMENT_TEAM - #5

Merged
wei18 merged 1 commit into
mainfrom
feat/auto-signing
May 19, 2026
Merged

wei18 merged 1 commit into
mainfrom
feat/auto-signing

Conversation

@wei18

@wei18 wei18 commented May 19, 2026

Copy link
Copy Markdown
Owner

Summary

Wire up Apple Developer signing via an xcconfig that lives outside git, so the public repo can ship a usable Project.swift without exposing the team identifier.

Pattern

File Tracked? Purpose
Tuist/Signing.xcconfig.example ✅ committed Template with YOUR_TEAM_ID_HERE placeholder + setup instructions
Tuist/Signing.xcconfig ❌ gitignored Actual DEVELOPMENT_TEAM = <10-char id>
Project.swift ✅ committed Both .debug and .release configurations reference Tuist/Signing.xcconfig; swiftSettings adds CODE_SIGN_STYLE = Automatic
.gitignore ✅ committed Explicitly excludes Tuist/Signing.xcconfig

On a fresh clone

cp Tuist/Signing.xcconfig.example Tuist/Signing.xcconfig
# edit Tuist/Signing.xcconfig and replace YOUR_TEAM_ID_HERE
mise exec -- tuist generate

CI / Xcode Cloud

Write Signing.xcconfig from a secret env var in ci_pre_xcodebuild.sh. Deferred until Xcode Cloud workflows land in Phase 10.

Defense in depth (verified)

  • git check-ignore Tuist/Signing.xcconfig → confirmed excluded
  • git ls-files | xargs grep -l <team-id> → empty
  • gitleaks dir scan of full 480MB working tree → 0 leaks
  • git status post-stage shows only .gitignore, Project.swift, Tuist/Signing.xcconfig.example

Verified builds

  • tuist generate: Success
  • xcodebuild iOS Sudoku scheme without CODE_SIGNING_ALLOWED=NO override: ** BUILD SUCCEEDED **
  • DEVELOPMENT_TEAM resolves correctly from the xcconfig at build time

🤖 Generated with Claude Code

Wire up Apple Developer signing via an xcconfig that lives outside git,
so the public repo can ship a usable Project.swift without exposing the
team identifier.

Pattern:
- Tuist/Signing.xcconfig.example (committed)  — template with placeholder
- Tuist/Signing.xcconfig         (gitignored) — actual DEVELOPMENT_TEAM
- Both .debug and .release configurations reference Signing.xcconfig
- Project.swift swiftSettings sets CODE_SIGN_STYLE = Automatic

On a fresh clone:
  cp Tuist/Signing.xcconfig.example Tuist/Signing.xcconfig
  # edit Tuist/Signing.xcconfig and replace YOUR_TEAM_ID_HERE
  mise exec -- tuist generate

For CI / Xcode Cloud: write Signing.xcconfig from a secret environment
variable in ci_pre_xcodebuild.sh (deferred until Xcode Cloud workflows
land in Phase 10).

Defense in depth:
- .gitignore explicitly excludes Tuist/Signing.xcconfig
- gitleaks scan of full working tree returns 0 leaks
- git check-ignore confirms the secret file is excluded
- No tracked file contains the team identifier (verified via grep)

Verified:
- tuist generate: Success
- xcodebuild iOS Sudoku scheme (NO CODE_SIGNING_ALLOWED override):
  ** BUILD SUCCEEDED **
- DEVELOPMENT_TEAM correctly resolved from xcconfig at build time
@wei18
wei18 merged commit d792521 into main May 19, 2026
@wei18
wei18 deleted the feat/auto-signing branch May 19, 2026 16:51
wei18 added a commit that referenced this pull request Jun 3, 2026
Skill CR (2026-06-03) found:
- description: starts 'Default pattern…' not 'Use when…' (CSO rule)
- Cross-ref to architect review file (missing — landed separately 8f8af17)
- Multi-app CI_PRODUCT dispatch absent
- Smoke-test scope ambiguity (source plist passes against literal $())
- No 'as!' anti-pattern warning
- No Project.swift wiring example
- No non-Tuist carve-out
- No Iron Law disclosure
- Migration playbook simplified without disclosure
- Anti-pattern 2 vs Migration step 3 internal conflict (fatalError)
- Outer .gitignore Tuist/*.xcconfig rule not explicit
- Rationalization counters thin

Full rewrite:
1. description leads with 'Use when…' + adds GADApplicationIdentifier /
   GADBannerUnitID / .p8 search keywords (~ 500 chars, under ceiling)
2. New 'Known testing gap' section discloses Iron Law violation
3. New 'Smoke test scope' section with ❌/✅ example showing source-plist
   trap + runtime-guard fix
4. New 'Multi-app dispatch' section with concrete CI_PRODUCT case-switch
   bash snippet
5. New 'Non-Tuist projects' carve-out
6. New 'Project.swift wiring' concrete snippet
7. New 'Verification checklist' (parallels apple-public-repo-security)
8. New 'Rationalizations table' with 6 explicit counters (memo + comment +
   private repo + small-app + 1-time + fatalError-grace)
9. Anti-pattern `as!` force-cast added (#5)
10. Anti-pattern Tuist clobbering unmanaged xcconfigs added (#8)
11. Anti-pattern #2 'fatalError forbidden long-term, allowed as transitional
    during xcconfig migration cycle' — resolves internal conflict with
    Migration step 3
12. Migration playbook disclosed as PR1's compressed reality, not
    Architect's 7-stage plan; cross-references architect review file
13. Cross-refs labelled REQUIRED / SIBLING

CR's Critical #1 (broken architect-review cross-reference) addressed
via 8f8af17 landing the file separately.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
wei18 added a commit that referenced this pull request Jun 17, 2026
…es filed) (#542)

Records this session's drivable-case sweep on the current sim:
- pass: #5 rapid double-tap Leave, #28 zh-Hant strings (+ earlier #1/#2/#10/
  #18/#25/#39 from #536 work)
- fail: #22 Dynamic-Type header clip (#540), #34 timer accrues background
  time (#539)
- pend w/ findings: #8 (near-win harness can't model home-return),
  #23 (digit-pad frames ≥44pt but glyphs render blank, #540),
  #29 (no tofu, but Purchases section unlocalized, #541)

New issues: #539 (solve timer counts background time — leaderboard fairness),
#540 (Dynamic Type AX3+ header/digit-pad breakage), #541 (Purchases/IAP
section unlocalized; L10n gate misses catalog-less literals).

Co-authored-by: Claude Opus 4.8 <[email protected]>
@wei18 wei18 mentioned this pull request Jul 28, 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.

1 participant