← Back to Pull requests

chore: replace XcodeGen with native Xcode 27 JSON project #543

Merged
BrunoCerberus merged 32 files (2128 lines) on Oct 31, 2026 15:55 UTC
View on GitHub
BrunoCerberus BrunoCerberus commented on Oct 31, 2026 14:12 UTC
Author

Summary

  • Commit Pulse.xcodeproj in the Xcode 27.2 JSON format (project.xcproj, 668 lines) and delete project.yml. Each target directory is a synchronized folder, so new files are picked up without a generate step. Cross-target membership from project.yml is kept as folder exceptions: SharedURLQueue.swift in the app, the TTS Live Activity files in the widget, and the widget sources in PulseWidgetExtensionTests.

  • Remove XcodeGen from the Mintfile, the Makefile (setup now resolves packages from Package.resolved), setup-ios (input generate-project → prepare-build), release.yml, path filters and docs.

  • make bump-* and the Release workflow now edit MARKETING_VERSION in project.xcproj.
  • Test plan

  • build-for-testing (PulseDev) with the XcodeGen project and with the new project: each target compiles the same 699 Swift files, the built products have identical contents, and the warnings are the same 8 that were already there

  • make lint, actionlint, check-localization-usage.py

  • CI is green on the pinned Xcode 27.0. Apple documents .xcproj as compatible with Xcode 27 and later, but it was only tested locally on 27.2

  • Open in Xcode, add a new Swift file, and confirm it builds without touching the project file
  • Notes

  • Pulse/Resources/Models is marked as an opaque folder and excluded. A plain directory exclusion didn't apply, and the ~800 MB local .gguf model got bundled into the app.

  • Third-party tools that read project.pbxproj (fastlane's xcodeproj gem, CocoaPods, older XcodeGen) don't understand the new format. Nothing in this repo uses them.

  • Pre-existing issue, not fixed here: every Info.plist hard-codes CFBundleShortVersionString as 1.0.0, so the MARKETING_VERSION bump never reaches the shipped app.

  • Rollback: revert this PR. XcodeGen and project.yml come back unchanged.
  • 🤖 Generated with Claude Code

    Diff: 2128 lines (+1473 / -655) across 32 files Reviewer: claude[bot] Review duration: 103m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.72) × (1 − Review Confidence (0.68)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.72 · 2128 lines diff across 32 files
    0.72
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.37 · 5 substantive comment(s)
    0.37
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    68%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.400
    Mass File Touch mass_file_touch
    0.080
    Real PR Conversation Timeline
    8 items
    claude[bot] claude[bot] commented on Oct 31, 2026 14:13 UTC
    Reviewer

    No blocking issues found in review. Merge once the CI legs on pinned Xcode 27.0 are green (see inline note). Five minor inline notes posted.

    claude[bot] claude[bot] commented on Oct 31, 2026 14:17 UTC
    Bot

    Claude finished @BrunoCerberus's task in 29s —— View job

    ---

    Review of #543 (XcodeGen to native Xcode 27 JSON project)

    Verdict: approved. I found no blocking issues.

    Findings by severity: 0 high, 0 medium, 0 low. I left no new inline comments because I found nothing new at file or line level. The earlier inline notes still apply, including the ATS-audit hardening suggestion.

    Cross-cutting observations

  • I checked Makefile, setup-ios, release.yml, ci.yml, the path filters, .gitignore and the gitleaks allowlist. The XcodeGen removal is consistent across them.

  • The MARKETING_VERSION grep and sed patterns in the Makefile and release.yml match the "MARKETING_VERSION": "..." lines in project.xcproj. There are two such lines, and the value-agnostic sed rewrites both.

  • Nothing is left in the repo that depends on the old generate step or on project.yml. The one exception is a stale comment in Pulse/Configs/String+HTMLStripping.swift:3 that mentions "XcodeGen regeneration". It is cosmetic and not part of this diff.

  • The ATS-exception check no longer scans the project definition. The previous security verification refuted this as a vulnerability. Adding grep -q NSAllowsArbitraryLoads Pulse.xcodeproj/project.xcproj to that step would still be cheap hardening.

  • I couldn't run the build here. The remaining test-plan items are still open: CI green on pinned Xcode 27.0, and adding a file in Xcode to confirm the synchronized folders pick it up.
  • claude[bot] claude[bot] approved these changes on Oct 31, 2026 14:18 UTC
    Approved Reviewer

    No blocking issues. Merge once the CI legs on pinned Xcode 27.0 are green.

    claude[bot] claude[bot] commented on Oct 31, 2026 14:18 UTC
    Bot

    Claude finished @BrunoCerberus's task in 22s —— View job

    ---

    Security verification complete

  • Read security-findings.json (1 candidate)

  • Tried to refute the candidate

  • Posted summary comment
  • Result: 0 confirmed, 1 refuted. The ATS check regression only matters if a maintainer later adds an ATS exception to the project build settings. This PR adds none, and no attacker-controlled input reaches it. I kept it as an optional hardening suggestion.

    claude[bot] claude[bot] commented on Oct 31, 2026 14:19 UTC
    Bot

    Security verification (advisory)

    Confirmed: 0 | Refuted: 1 (of 1 candidate from discovery)

  • Refuted: ATS-exception CI check no longer inspects build settings (.github/workflows/reusable-security-audit.yml:201). The removed project.yml grep only covered a config file that no longer exists. The remaining step still scans every Info.plist. Pulse.xcodeproj/project.xcproj and all Info.plist files contain no NSAppTransportSecurity, NSAllowsArbitraryLoads or INFOPLIST_KEY_* entries, so this PR adds no ATS weakening. Exploiting the gap would take a maintainer-authored commit that also passes PR review. No attacker-controlled input reaches it, so it is a hardening suggestion and not a vulnerability. An optional grep -q NSAllowsArbitraryLoads Pulse.xcodeproj/project.xcproj in that step would restore the old coverage cheaply.
  • <!-- claude-security-review -->

    github-actions[bot] github-actions[bot] commented on Oct 31, 2026 14:42 UTC
    Bot

    Diff Coverage


    Diff: 1c8cfe53790df5c7f0c4ab50efc00371145ed58a...HEAD, staged and unstaged changes

    No lines with coverage information in this diff.

    <!-- Sticky Pull Request Commentpatch-coverage -->

    github-actions[bot] github-actions[bot] commented on Oct 31, 2026 15:17 UTC
    Bot

    ⚠️ Flaky tests detected

    These tests failed on their first attempt and passed on a retry. The suite is green because of -retry-tests-on-failure; the tests themselves are not reliable.

    | Suite | Test | First-attempt failure |
    |-------|------|----------------------|
    | Unit Tests | MediaDomainInteractorTests.loadInitialDataIdempotent() | Expectation failed: stateAfterFirstLoad.hasLoadedInitialData stateAfterFirstLoad → MediaDomainState(selectedType: nil, featuredMedia: [], mediaItems: ... |
    | Unit Tests | SettingsViewModelExtendedTests.languageChange() | Expectation failed: sut.viewState.selectedLanguage == "pt" sut.viewState.selectedLanguage → "en" |
    | Unit Tests | SettingsViewModelSignOutTests.confirmDeleteAccountCallsAuthService() | Expectation failed: !sut.viewState.isDeletingAccount sut.viewState.isDeletingAccount → false |

    <!-- flaky-report -->

    <!-- Sticky Pull Request Commentflaky-report -->

    Reviewers
    Assignees
    BrunoCerberus BrunoCerberus
    Labels
    risk: low confidence: 68.3% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 71.5% (HIGH) · Higher = larger blast radius
    71.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 68.3% · Lower = rushed or shallow review
    68.3%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.7% · Safe to merge
    22.7%