From 02c0b637cb5e99e37f84bd63baeb5d4a35c0bee1 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Fri, 13 Feb 2026 20:46:21 +0100 Subject: [PATCH] Fix build number file path and remove update_fastlane in CI - Write latest_build_number.txt to repo root using explicit path (fastlane runs from fastlane/ subdir, so relative path was wrong) - Remove update_fastlane from before_all to avoid CI instability --- fastlane/Fastfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index c8fa851b..6f90037e 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -38,7 +38,7 @@ end add_extra_platforms(platforms: [:tvos]) before_all do - update_fastlane + # Skipping update_fastlane in CI for stability end desc "Get latest TestFlight build number across all platforms" @@ -55,7 +55,9 @@ lane :latest_build_number do macos_build = latest_testflight_build_number(api_key: api_key, app_identifier: DEVELOPER_APP_IDENTIFIER, platform: "osx") max_build = [ios_build, tvos_build, macos_build].max - File.write("latest_build_number.txt", max_build.to_s) + # Write to repo root (Fastfile is in fastlane/ subdir) + output_path = File.expand_path("../latest_build_number.txt", __dir__) + File.write(output_path, max_build.to_s) UI.success("Latest TestFlight build number: #{max_build}") max_build end