Skip to content

fix(sender): keep footer and bundle build numbers in sync - #219

Merged
swellweb merged 1 commit into
swellweb:maint-3.6from
Betafer:codex/fix-sender-build-number-3.6.1
Nov 12, 2026
Merged

swellweb merged 1 commit into
swellweb:maint-3.6from
Betafer:codex/fix-sender-build-number-3.6.1

Conversation

@Betafer

@Betafer Betafer commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

A normal build of the 3.6.1 candidate can show a timestamp in the Sender footer while CFBundleVersion retains CURRENT_PROJECT_VERSION. TB_SENDER_BUILD also previously changed the generated Swift value without overriding the bundle build setting, so the same app could report two different build identifiers.

Generate the footer from Xcode's resolved CURRENT_PROJECT_VERSION. The packaging helper forwards a nonempty TB_SENDER_BUILD as that build setting, rejecting malformed explicit overrides before generation or compilation. With no override, Xcode retains control of project and configuration-specific values. Extend the existing version test to compare CFBundleVersion with the generated build number, and regenerate the checked-in Xcode project.

Build-number policy: the footer now reports the configured bundle build number, rather than inventing a fresh timestamp on each build. Release automation remains responsible for selecting or incrementing that number. TB_SENDER_BUILD is supported by the packaging helper; direct xcodebuild invocations should use CURRENT_PROJECT_VERSION.

Base: maint-3.6 at 6fa46ac. Four files, 12 additions and 2 deletions; a packaging follow-up to #217 / #218.

Validation of the final patch:

  • Reproduced the original mismatch using the candidate's actual stamp script.
  • Built the default Debug Sender: footer source and built Info.plist both report 20261012120715.
  • Built two Release universal packages (x86_64 and arm64): a configuration-specific value 42.7.3, then an explicit TB_SENDER_BUILD=42.9.1 overriding that configuration. Footer source and package metadata agree in both cases. The fixture also uses valid unquoted numeric YAML for the base setting.
  • Executed the exact version XCTest source in a minimal CLI XCTest host using metadata from the actual Debug package: corrected generator passes; original generator fails precisely the new CFBundleVersion assertion. The full application test target also compiles successfully with build-for-testing.
  • Checked helper argument handling for unset, empty, integer, two/three-component and timestamp overrides, plus eight invalid values. These argument checks use isolated stubs; actual builds above separately cover the packaging path.
  • Executed the real helper with nonnumeric and four-component overrides: both rejected, with every existing package file hash and the project files unchanged.
  • Both Release bundles pass strict, deep, all-architecture ad-hoc signature verification. All five language JSON files and three addon manifests match the shared source bytes; the development localization script is excluded.
  • Verified regeneration of the Xcode project, shell syntax, the full four-file diff and clean patch application to the exact base.

Scope of validation: development packages were built in an isolated workspace and not launched or installed. The focused XCTest ran in a CLI host, not the production app host; the full app-hosted suite was compiled but not executed. Existing compiler warnings in unchanged code remain. These checks do not establish installed-update permission continuity or satisfy the hardware publication gate in #218.

Use Xcode's resolved build version for the generated footer and forward
explicit TB_SENDER_BUILD overrides through the packaging helper.
Extend the existing version regression test to cover CFBundleVersion.
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.

2 participants