Skip to content

Fix App Store Connect build selection by explicitly specifying version and build number in upload#257

Merged
archubbuck merged 2 commits intomainfrom
copilot/fix-release-pipeline-version
Jan 31, 2026
Merged

Fix App Store Connect build selection by explicitly specifying version and build number in upload#257
archubbuck merged 2 commits intomainfrom
copilot/fix-release-pipeline-version

Conversation

Copy link
Contributor

Copilot AI commented Jan 30, 2026

App Store Connect was selecting Build 1 (version 1.0) instead of the most recent build (e.g., Build 305 with version 1.0.72) despite the release pipeline correctly setting both values in the IPA.

Root Cause

upload_to_app_store without explicit app_version and build_number parameters doesn't reliably associate the uploaded build with the target version in App Store Connect.

Changes

ios/App/fastlane/Fastfile

  • Add app_version: version_number parameter to upload_to_app_store call
  • Add build_number: build_number parameter to upload_to_app_store call
  • Add pre-upload logging for version/build traceability
upload_to_app_store(
  api_key: api_key,
  app_identifier: APP_IDENTIFIER,
  metadata_path: "./metadata",
  app_version: version_number,  # Explicit version binding
  build_number: build_number,   # Explicit build binding
  # ... other params
)

docs/IOS_VERSIONING.md

  • Document explicit version/build parameter passing in workflow
  • Add troubleshooting entry for incorrect build selection
Original prompt

This section details on the original issue you should resolve

<issue_title>The release pipeline sets the version number correctly, but incorrectly selects version 1.0 for the build rather than the version deployed most recently</issue_title>
<issue_description>Image

Image</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…hen uploading to App Store Connect

Co-authored-by: archubbuck <3529902+archubbuck@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix release pipeline to select the latest build version Fix App Store Connect build selection by explicitly specifying version and build number in upload Jan 30, 2026
@archubbuck archubbuck requested a review from Copilot January 31, 2026 22:25
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ensures Fastlane uploads are explicitly bound to the intended App Store Connect version/build so the correct build is selected during release.

Changes:

  • Adds pre-upload logging of the resolved version_number and build_number for traceability.
  • Passes app_version and build_number explicitly to upload_to_app_store to avoid App Store Connect associating the upload with an unintended version/build.
  • Updates iOS versioning documentation with the new explicit upload behavior and troubleshooting guidance.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
ios/App/fastlane/Fastfile Adds explicit app_version/build_number parameters and logs the version/build prior to upload.
docs/IOS_VERSIONING.md Documents the explicit version/build upload behavior and updates troubleshooting notes.

@archubbuck archubbuck marked this pull request as ready for review January 31, 2026 22:42
@archubbuck archubbuck merged commit 0418844 into main Jan 31, 2026
7 checks passed
@archubbuck archubbuck deleted the copilot/fix-release-pipeline-version branch January 31, 2026 22:42
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.

The release pipeline sets the version number correctly, but incorrectly selects version 1.0 for the build rather than the version deployed most recently

3 participants