diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 061eb92d21..751b5b0df9 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -148,7 +148,7 @@ lane :latest_build_number_for_version do |options| build_number = latest_testflight_build_number( api_key: get_api_key, version: options[:version], - initial_build_number: 0, + initial_build_number: -1, username: get_username(options)) if options[:file_name] File.write(options[:file_name], build_number) diff --git a/scripts/prepare_release.sh b/scripts/prepare_release.sh index 3909a5e23f..4a5bde66d3 100755 --- a/scripts/prepare_release.sh +++ b/scripts/prepare_release.sh @@ -171,8 +171,8 @@ create_build_branch() { update_marketing_version() { printf '%s' "Setting app version ... " - version=$(cut -d' ' -f3 < "${base_dir}/Configuration/Version.xcconfig") if [[ $is_hotfix ]]; then + version=$(cut -d' ' -f3 < "${base_dir}/Configuration/Version.xcconfig") version=$(bump_patch_number "$version") fi