Xcode Cloud + Xcode 16.0.0 + Test Phase Always Exceeds 2 hours

My team's Xcode Cloud build started timing out when we recently upgraded to Xcode 16.0.0. Specifically, the test build phase times out due to exceeding the 2 hour limit.

The Test - iOS action could not complete due to an error. The error may not occur on rebuild.

Build has exceeded the maximum allotted time. Each build can run for up to 120 minutes. If a build has not yet finished at this time, all incomplete actions will be cancelled.

When running Xcode 15.4.0, the test build phase completed in roughly 45 minutes.

It's also important to know that our test build completes in about 15 minutes when executing on one of our in-house Mac mini build machines (Apple Silicon). So the issue seems to be with Xcode Cloud + Xcode 16.0.0 and not our project.

We have been burning through Xcode Cloud hours hoping that at some point Xcode Cloud will be fixed.

The status page right now is all "green":

Is there a known issue with Xcode Cloud + running tests? We have combed through our project's Xcode Cloud logs and artifacts, but nothing jumps out as something on our end.

Also, there is a large file named "Test Products for <app name>", but we can't download it due to crashes/ errors:

  • The Xcode IDE UI shows this file as 1.99GB
    • Xcode crashes when attempting to download the file.
  • The App Store Connect UI shows this file as ~1GB (possibly just omitting precision).
    • An error response page is returned when attempting to download.

Thanks in advance for any advice/ feedback.

Please file a bug report about this issue using Feedback Assistant then post the number here.

+1 to the DTS Engineer's recommendation to file a bug report.

Also:

Have you tried creating a new Xcode Cloud workflow which just performs a Build action without attempting to run any tests? I'd be curious if that would succeed and how long it would take.

Here's the Feedback ID: FB15428353

Regarding performing a just a "build"... yes, our Xcode Cloud "archive" action succeeds. With Xcode 15.4.0 an archive in Xcode Cloud takes about 20 minutes. With Xcode 16.0.0 an archive in Xcode Cloud takes about 40 minutes.

Starting with Xcode 16.0.0 our project enabled ENABLE_MODULE_VERIFIER = YES for release builds (disabled debug/ test builds).

I've just done this as well; we're seeing the same. FB15431051

@bkreeger-oreilly curious if you have received any updates on your bug report?

We've encountered something similar. FB15504633

@bc_coop, @bkreeger-oreilly, @Tron500012345 Thank you for filing these bug reports. We are investigating them.

Xcode Cloud + Xcode 16.0.0 + Test Phase Always Exceeds 2 hours
 
 
Q