Skip to content

fix: support Bitrise build-number injection in updateBuildVersion.sh - #325

Merged
cassio-rossi merged 1 commit into
release/v5from
fix/bitrise-build-version-support
Jul 30, 2026
Merged

fix: support Bitrise build-number injection in updateBuildVersion.sh#325
cassio-rossi merged 1 commit into
release/v5from
fix/bitrise-build-version-support

Conversation

@cassio-rossi

Copy link
Copy Markdown
Collaborator

Summary

  • The recent semver-only rewrite of updateBuildVersion.sh (patch/minor/major) dropped the ability to stamp CI's own build number onto CURRENT_PROJECT_VERSION.
  • --build now optionally takes an explicit number (--build 677) to set the 4th component directly (e.g. 5.1.1.0 -> 5.1.1.677) without touching MARKETING_VERSION — for Bitrise usage: updateBuildVersion.sh --build $BITRISE_BUILD_NUMBER.
  • --build with no number still auto-increments the build component (existing local-dev behavior), and patch|minor|major still bump MARKETING_VERSION as before.

Test plan

  • updateBuildVersion.sh --build 677 on a copy of project.pbxproj: MARKETING_VERSION unchanged (5.1.1), CURRENT_PROJECT_VERSION 5.1.1.0 -> 5.1.1.677 (10 build configs updated)
  • updateBuildVersion.sh patch --build: MARKETING_VERSION 5.1.1 -> 5.1.2, CURRENT_PROJECT_VERSION 5.1.1.677 -> 5.1.2.678
  • No-args invocation now errors instead of silently no-op bumping patch

Note: Bitrise's workflow step needs updating to call updateBuildVersion.sh --build $BITRISE_BUILD_NUMBER (previously used the old -p/-i/-b interface, which no longer exists after the semver rewrite).

🤖 Generated with Claude Code

The semver-only rewrite dropped the ability to stamp CI's own build
number onto CURRENT_PROJECT_VERSION (e.g. 5.1.1.0 -> 5.1.1.677).
--build now optionally takes an explicit number to set the build
component directly, without touching MARKETING_VERSION, so Bitrise
can call `updateBuildVersion.sh --build $BITRISE_BUILD_NUMBER`.

Co-Authored-By: Claude <noreply@anthropic.com>
@cassio-rossi
cassio-rossi merged commit b841667 into release/v5 Jul 30, 2026
1 of 2 checks passed
@cassio-rossi
cassio-rossi deleted the fix/bitrise-build-version-support branch July 30, 2026 18:16
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