Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting the latest build number across ALL versions #320

Open
orenagiv opened this issue Jun 13, 2023 · 3 comments
Open

Getting the latest build number across ALL versions #320

orenagiv opened this issue Jun 13, 2023 · 3 comments

Comments

@orenagiv
Copy link

Hey,

Currently it seems this tool fetches the latest build number of the highest version number.
However, when dealing with hot fixes - we sometimes need to create a build in a lower version than the newest one.

Is there a way to instruct the tool to fetch the latest build number across all versions? (and not only from the highest one?)

@helinanever
Copy link
Contributor

Hi @orenagiv ,

Thank you for reporting this issue. Can you tell us from what service you were trying to get the latest build number?
Please provide the exact commands you were using as well as a description of actual vs expected behavior.

@sebimarkgraf
Copy link

I am probably facing the same issue as orenagiv.
This is Apple specific as for Android the build versions are globally unique, while for Apple distributions every version can have their own build numbers.

Simple case:
For the App we already build Version 2.0.0 with e.g. build number 5 but did not publish it yet, as the app is not final.

We had released 1.9.0 but now need to develop a quick fix 1.9.1 for some security issue.

When using appstoreconnect, we always going to receive 5 for the latest build number, as 2.0.0 > 1.9.1. Then the simple build number + 1 logic, is always going to return 6, which is not the version we want.
As soon as we need two build numbers for our 1.9.1 release, they are going to both have the version 6 and fail to upload.

Possible fix:
Allow the user to specify the version which should be checked for the latest build number.
Here, we could hand the public version (1.9.1 | 2.0.0) and receive the correct build number and increment it.

The exact command I am currently using $(app-store-connect get-latest-build-number "$APP_ID")

@sebimarkgraf
Copy link

Update mainly for @orenagiv :
A possible supported way for the scenario seems to be get-latest-testflight-build-number which supports --pre-release-version to query a specific version.

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

No branches or pull requests

3 participants