In my app I\'m adding some UI tests. With one test method everything works perfectly, but when I added second method, the test is failing because of the following error:
<Updating to 7.3 beta resolved this issue for me. It definitely seems to be related to the teardown functionality.
I have submitted a bug report and have been asked to test on Xcode 7.3 beta 3. It is fixed! You can check my radar 24524204 that is now closed as resolved.
This sounds like the app isn't being torn down correctly after the first test is completed. Try explicitly killing the app in your tear down method.
- (void)tearDown {
[[[XCUIApplication alloc] init] terminate];
[super tearDown];
}