Overview
A job running Fastlane unit tests fails with:
Too long with no output (exceeded Xm0s): context deadline exceeded
The job hangs silently during the testing phase and is eventually killed by no_output_timeout. Increasing no_output_timeout parameter might not help.
Root Cause
The issue can be caused by the SFSafariViewController object causing the unit tests to hang.
Solution
Mock or skip tests that invoke SFSafariViewController.
As an additional option, you may change output_style: "basic" to output_style: "raw" . This passes through full xcodebuild output, which acts as a natural keepalive and also gives you better visibility into where things stall.
Comments
Article is closed for comments.