From 5c94526961d2faa0d3e67f1a2b07e0c8ef13893b Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 27 Jul 2026 08:31:04 +0200 Subject: [PATCH] Exclude internal groups from TestFlight distribution ASC now rejects assigning builds to internal groups explicitly (they get access to new builds automatically), which failed all beta lanes at upload_to_testflight. --- fastlane/Fastfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 654d66d4..d1851cea 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -40,7 +40,9 @@ def all_testflight_group_names(api_key) Spaceship::ConnectAPI.token = Spaceship::ConnectAPI::Token.from(hash: api_key) app = Spaceship::ConnectAPI::App.find(DEVELOPER_APP_IDENTIFIER) UI.user_error!("App #{DEVELOPER_APP_IDENTIFIER} not found on App Store Connect") if app.nil? - groups = app.get_beta_groups.map(&:name) + # Internal groups can't be assigned builds via the API (ASC rejects it); + # they get access to new builds automatically anyway. + groups = app.get_beta_groups.reject(&:is_internal_group).map(&:name) UI.user_error!("No TestFlight beta groups found for #{DEVELOPER_APP_IDENTIFIER}") if groups.empty? UI.message("Distributing build to TestFlight groups: #{groups.join(', ')}") groups