From 39099a54b8e81a9d080de8130d092ae2740efbf2 Mon Sep 17 00:00:00 2001 From: Mohamed Boudra Date: Fri, 8 May 2026 21:37:45 +0700 Subject: [PATCH] fix(fastlane): filter Build.all by build_number, not version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit latest_testflight_build_number returns the build number (e.g. "2"), not the marketing version. Previous fix used the version: kwarg which maps to filter[preReleaseVersion.version] — that's the marketing version ("0.1.70") and never matched the integer build number, so the query returned no builds and the lane spun on "processing state: unknown" until timeout. Apple's API names are confusing: filter[version] is the build number, filter[preReleaseVersion.version] is the marketing version. The build_number: kwarg in spaceship maps to filter[version], which is what we want. --- packages/app/fastlane/Fastfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/app/fastlane/Fastfile b/packages/app/fastlane/Fastfile index e0182370b..486538439 100644 --- a/packages/app/fastlane/Fastfile +++ b/packages/app/fastlane/Fastfile @@ -29,7 +29,7 @@ platform :ios do loop do builds = Spaceship::ConnectAPI::Build.all( app_id: app.id, - version: build_number.to_s, + build_number: build_number.to_s, ) build = builds.find { |b| b.pre_release_version&.platform == "IOS" } state = build&.processing_state