From 04eb24dba930a8509054c836cc2f950f9e51f0dc Mon Sep 17 00:00:00 2001 From: Gio Lodi Date: Mon, 1 Jul 2024 11:40:17 +1000 Subject: [PATCH] Bump Fastlane `xcodebuild -showBuildSettings` interval to try avoid timeouts Set in `Fastfile` instead of as a CI env var so everyone can benefit from it. --- fastlane/Fastfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index a821e996e295..d7d2b8a8f4e6 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -267,6 +267,14 @@ import 'lanes/release_management_in_ci.rb' default_platform(:ios) before_all do |lane| + # Various actions run 'xcodebuild -showBuildSettings ...' which can at times fail, possibly due to networking and SPM resolution. + # See for example this failure https://buildkite.com/automattic/wordpress-ios/builds/22979#01906bdc-3077-4d17-b742-a55c9a9db4b4 + # + # Bumping the interval Fastlane waits for xcodebuild to provide output before retrying seems to be an effective workaround. + # + # See also https://github.com/fastlane/fastlane/issues/20919 + ENV['FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT'] = '120' + # Skip these checks/steps for test lane (not needed for testing) next if lane == :test_without_building