XCode Version: 10.2.1: Timed out snapshotting com.apple.testmanagerd, app is either unresponsive or taking too long to snapshot

Getting this error while running XCUITests.


Error Log:


t = 127.20s Find the "Enter Neighborhood or Building" StaticText

t = 127.20s Snapshot accessibility hierarchy for app with pid 787

t = 130.29s Find the "Enter Neighborhood or Building" StaticText (retry 1)

t = 130.37s Assertion Failure: DirectPropertyTest.swift:18: Timed out snapshotting com.apple.testmanagerd, app is either unresponsive or taking too long to snapshot.

t = 140.42s Tear Down

t = 140.43s Checking for crash reports corresponding to unexpected termination of com.xxxx.DubizzleHorizontal

Test Case '-[XXXXHorizontalUITAutomationTests.DirectPropertyTest testPropertyCrash]' failed (140.432 seconds).

Test Suite 'DirectPropertyTest' failed at 2019-10-10 08:06:05.153.

Executed 1 test, with 1 failure (0 unexpected) in 140.432 (140.433) seconds

Test Suite 'XXXXHorizontalUITAutomationTests.xctest' failed at 2019-10-10 08:06:05.155.

Executed 1 test, with 1 failure (0 unexpected) in 140.432 (140.435) seconds

Test Suite 'Selected tests' failed at 2019-10-10 08:06:05.157.

Executed 1 test, with 1 failure (0 unexpected) in 140.432 (140.438) seconds