Ignore benign altool CDUploaderStateInfoResumeFilePath error in fastlane

Xcode 27.2's altool logs an ERROR line about the uploader resume file even
when the upload succeeds, which made upload_to_testflight fail before
setting the changelog and distributing to external groups.
This commit is contained in:
Arkadiusz Fal
2026-10-31 20:30:32 +01:00
parent f0578e99cd
commit dd1213c5a8

View File

@@ -14,6 +14,23 @@ GIT_AUTHORIZATION = ENV['GIT_AUTHORIZATION']
XCODEPROJ = "#{APP_NAME}.xcodeproj" XCODEPROJ = "#{APP_NAME}.xcodeproj"
SCHEME = APP_NAME SCHEME = APP_NAME
# Xcode 27.2's altool logs a spurious
# "ERROR: ... Failed to create URL for 'CDUploaderStateInfoResumeFilePath'"
# line even when the upload succeeds. fastlane treats any ERROR: line as a
# failure, which aborts upload_to_testflight before changelog/distribution.
module IgnoreBenignAltoolErrors
BENIGN_ALTOOL_ERRORS = ["CDUploaderStateInfoResumeFilePath"].freeze
def parse_line(line, hide_output)
if BENIGN_ALTOOL_ERRORS.any? { |pattern| line.include?(pattern) }
UI.important("[altool] Ignoring benign error: #{line.strip}")
return
end
super
end
end
FastlaneCore::AltoolTransporterExecutor.prepend(IgnoreBenignAltoolErrors)
def delete_temp_keychain(name) def delete_temp_keychain(name)
delete_keychain( delete_keychain(
name: name name: name