My Workflow works on Bitrise, but running the same Workflow with Bitrise CLI on my local machine fails.
Neither NewVersionCode nor NewVersionName are provided, however one of them is required.
Most probably an Environment Variable is missing.
Some Bitrise Env Vars are only available when running on Bitrise virtual machines, such as:
These Env Vars are not defined when running workflow locally via Bitrise CLI. Make sure your Steps don't contain these Env Vars as inputs.
If you want to keep using these Env Vars on Bitrise and make the Workflow work locally too, we recommend using a template expression that assigns different values to the Step input in the two environments:
title: Template example
- content: |-
echo "CI mode"
echo "not CI mode"