A simple Test Failed With Weird Assertion

I am seeing an assertion failure, that I have not seen before.
[Runner] *** Assertion failure in -[XCTActivityRecordStack didFinishActivity:testCase:], XCTActivityRecordStack.m:64
I tried to find if any one see this before. The tests are running on CI (in Buddybuild's VM). Using Xcode 12.3 iPhone 12/iOS12.2.

Can't able to reproduce locally. Seems like a test runner assertion.
I am launching the app using simctl command.

Please let me know if there is any solution for this.

Replies

I am facing similar issue, This happens when my XCUItest script uninstalls and reinstalls test application amid a single run.

Code Block
2021-03-12 19:19:57.675873+0530 UITests-Runner[10864:1037908] * Assertion failure in -[XCTFuture _waitForFulfillment], XCTFuture.m:158
2021-03-12 19:19:58.359629+0530 UITests-Runner[10864:1037908] * Assertion failure in -[XCTActivityRecordStack didFinishActivity:testCase:], XCTActivityRecordStack.m:64


To me looks like Xcode issue (probably introduced since Xcode 12 and above).
I am using Xcode 12.3.