altool --validate-app hung on "Contacting Apple Services..."

Over the weekend our iOS builds started failing:

[2022-05-16 02:03:04.539] lib          INFO     /usr/bin/xcrun altool --validate-app -f <redacted>.ipa -t iOS -u <redacted email> -p <redacted>
[2022-05-16 02:03:22.681] lib          ERROR    [stderr] 2022-05-16 02:03:22.681  INFO: ContentDelivery version 2.14.3 ((null)).
[2022-05-16 02:03:22.715] lib          ERROR    [stderr] 2022-05-16 02:03:22.715  INFO: Show Progress: Contacting Apple Services…
Build timed out (after 180 minutes). Marking the build as failed.

A successful build's validation step looked like this:

[2022-05-15 02:10:51.347] lib          INFO     /usr/bin/xcrun altool --validate-app -f <redacted>.ipa -t iOS -u <redacted email> -p <redacted>
[2022-05-15 02:11:20.410] lib          ERROR    [stderr] 2022-05-15 02:11:20.410 *** Error: /Volumes/Build/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool, terminated with status: 1
[2022-05-15 02:11:20.410] lib          ERROR    [stderr] 2022-05-15 02:11:20.411 *** Error: /Volumes/Build/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool (1): /Volumes/Build/Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2245: warning: statement not reached
[2022-05-15 02:11:20.410] lib          ERROR    [stderr] /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/gems/CFPropertyList-2.3.6/lib/cfpropertylist/rbCFPropertyList.rb:99: warning: assigned but unused variable - temp
[2022-05-15 02:11:20.410] lib          ERROR    [stderr] OS X 12.3.1 21E258

...and then despite the above errors it carried on, unzipping the .ipa and successfully passing validation:

[2022-05-15 02:12:04.240] lib          INFO     [stdout] No errors validating archive at '<redacted>.ipa'.

I tried bypassing validation and allowing it to continue the job's normal deployment workflow (via fastlane), and the build went up successfully.

We've had multiple build failures with it stuck during validation, and I don't want to disable it. Our builds are running on Mac Minis in AWS EC2 with no outbound network filtering. Any suggestions?

macOS version: 12.3.1

Xcode 13.3.1

Build version 13E500a

You might have better luck using one of your Code Level Support Tickets where Apple can investigate directly & discreetly.

altool is broken after upgrade to macOS 12.4 and Xcode 13.4,

─altool --validate-app -f utiliguard-1.0.936.936.ipa -t ios -u -p yzge-bqgb-lfkq-leev 130 ↵ 2022-05-19 08:20:21.983 *** Error: /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool, terminated with status: 1 2022-05-19 08:20:21.984 *** Error: /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool (1): /Applications/Xcode.app/Contents/Developer/usr/bin/ipatool:2245: warning: statement not reached /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0/gems/CFPropertyList-2.3.6/lib/cfpropertylist/rbCFPropertyList.rb:99: warning: assigned but unused variable - temp OS X 12.4 21F79

`inline-code`

I run in the same issue, is there a solution to solve this problem?

altool --validate-app hung on "Contacting Apple Services..."
 
 
Q