Fastlane latest_testflight_build_number always return 0 on Bitrise

Hi @viktorbenei

Description of the issue
I’m trying to use latest_testflight_build_number action on Fastlane to order to increase the build number based on the current build on testflight.

When I run my lane locally, it works fine and return the correct build number. But, when I run the workflow on Bitrise, latest_testflight_build_number action will always return 0 as the build number.

Here is my code, which is simple:

    latest_build_number = latest_testflight_build_number(version: version_number, initial_build_number:0, app_identifier: "My.App.ID")

Do anyone encounter this issue and know what is the cause?

Thank you so much

Hi @JackZhao,

to increase the build number based on the current build on testflight.

What’s the source for this? Where does the build number come from? From the repository or from TestFlight directly?

The build number is from TestFlight.

latest_testflight_build_number(version: version_number)

I passed in the version_number in my code and this function will fetch the latest build number from TestFlight.
And this is an action from Fastlane.
https://docs.fastlane.tools/actions/latest_testflight_build_number/

Can you please link the related bitrise.io build’s URL? Without the logs it’s quite hard to tell what the issue might be.