UI tests failing after an app had crashed on a previous UI test if running from xcodebuild

Originator:bogdankosh
Number:rdar://45273556 Date Originated:October 15 2018
Status:DUPLICATE OF 44765263 Resolved:
Product:Developer Tools | Xcode Product Version:Version 10.0 (10A254a)
Classification: Reproducible:
 
Summary:
- UI tests start to crash with an error like: "Application state is still unknown for com.SampleDeveloper.SampleApp (pid:1111)" when running from xcodebuild. For example, if while testing an app crashed because of some error, like an force unwrap, the Simulator will hang and won't let to run ui tests that were queued after it for some time. 

Steps to Reproduce:
1. Have a project with some number of ui tests
2. Launch them all via xcodebuild
3. Have an app crashed while running one of the tests

Expected Results:
A test where the crash appeared, should fail, tests that should run after it will run as usual. 

Actual Results:
A test where the crash appeared fails and hangs a simulator for some tests (5-10) with a message: "Application state is still unknown for com.SampleDeveloper.SampleApp (pid:1111)" or "Unexpected test interruption without any failures reported"

Version/Build:
Version 10.0 (10A254a)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!