Bitrise Xcode Test for iOS failes 4/5 times with "Asynchronous wait failed"

ios
#1

Bitrise Build Issue Report template

Description of the issue

Xcode tests seems to failing with “Asynchronous wait failed” error most of the times and we noticed only a specific test is failing which uses a background queue and somehow never fulfills the expectation.

Everything works well locally (both with Bitrise CLI and through Xcode command line). The only reason I could think of is using multiple DispatchQeue in our XCTest is causing Bitrise to somehow not execute them properly.

Environment:

Where did the issue happen?

Where: Bitrise.io
Stack: Xcode 12.1

Which build Step causes the issue and which version of the step?

Xcode Test for iOS Version: 2.4.6

Reproducibility

  • Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build) : Sometimes (1 in 5 times, it works)
  • Does the issue happen sporadically, or every time? : 4/5 times
  • Does upgrading the build Step to the latest version help? : NO

Local reproduction

Both the below setup worked and the XCTests passed

Setup 1: Bitrise CLI with using bitrise.yml configured for the project
iOS Simulator used: iPhone 8 Plus (Reset Content and Settings done)

Setup 2: Xcode command lane test execution
iOS Simulator used: iPhone 8 Plus (Reset Content and Settings done)

Build log

0 Likes