Skip to content
Discussion options

You must be logged in to vote

Hey @mostafaAbdelazim, you need to add the logic inside build arguments and not in the pre-build script, something like this
--build-number=$(($(app-store-connect get-latest-testflight-build-number "$APP_ID") + 1))

you can also use a built-in variables like PROJECT_BUILD_NUMBER or BUILD_NUMBER

--build-name=1.2.$PROJECT_BUILD_NUMBER --build-number=$(($PROJECT_BUILD_NUMBER + 1))

The PROJECT_BUILD_NUMBER variable is a built-in environment variable that represents the current build number of your project.
It is automatically incremented with each new build of your app.
image

Also make sure that Info.plist file has the following string along with their key values

<key>CFBundleShortVersionStri…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mostafaAbdelazim
Comment options

@dtrdic
Comment options

Answer selected by mostafaAbdelazim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants