"Too long with no output" When Running iOS Tests with Fastlane

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.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.