XCTest: Crashing in XCTestExpectations in iOS

2019-08-21 14:26发布

问题:

When I run my unit test scripts, it is crashing at ""waitForExpectationWithTimeout" in "ServiceTest" class.

If I run test scripts for this "ServiceTest" class alone, then it is working properly without crash. But if I run test scripts for entire project, I am getting this crash. I am clueless on why and what this crash means. Appreciate any help. Thanks.