Xcode Cloud too slow and cannot even compile app within 2 hours

Hello,

We just started using Xcode Cloud recently and even the bare minimum build and test on pull request fails to build all the way and get error saying:

"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.".
"The Test - iOS action could not complete due to an error. Something went wrong and the Xcode Cloud team has been notified to investigate. The error may not occur on rebuild."

On local machines average clean/build time is around 8-10 minutes, I would not expect Xcode Cloud to take more than 20 minutes at most but it fails to compile all the way even after 2 hours.

Is there anything I can do to make this faster or am I missing something? Thank you.

Answered by gomfuciusebates in 708980022

We just had a few successful builds recently. It was finished within 23 minutes. I wonder if there were changes to Xcode Cloud. In any case, I'm happy it's working.

Hello gomfuciusebates,

This isn't an answer, per se, but I'm curious: does your project have a lot of external dependancies which must be installed and rebuilt on each build?

Take a look at Making Dependencies Available to Xcode Cloud for a potential starting point for your investigation.

—jasonag.

Accepted Answer

We just had a few successful builds recently. It was finished within 23 minutes. I wonder if there were changes to Xcode Cloud. In any case, I'm happy it's working.

Xcode Cloud too slow and cannot even compile app within 2 hours
 
 
Q