XCUI tests crash unconditionally on-device

Originator:ravron
Number:rdar://33248238 Date Originated:2017-07-11
Status:Open Resolved:
Product:Xcode Product Version:9.0 beta 3 (9M174d)
Classification:Crash Reproducible:Always
 
Running any XCUI tests on device crashes.

Steps to Reproduce:
1. Open Xcode 9.0 beta 3.
2. Create a new single-view iOS application project. Be sure to include UI tests.
3. Run the testExample UI test on a device.
4. Observe that the UI test runner crashes in -[XCTRunnerIDESession initWithTransport:]

Expected Results:
The UI tests should run successfully and exit cleanly on the device.

Observed Results:
The runner crashes reliably.

Version:
Xcode Version 9.0 beta 3 (9M174d)
macOS 10.12.5 (16F73)

Notes:
This looks like a method call on an invalid pointer, because the crash isn't often the same between two separate runs. Sometimes it invokes unknown selectors, sometimes it calls random functions, etc. As requested, I attached the session crash log, but this should be easily repeatable.

Configuration:
I have seen this issue on an iPhone 6 running iOS 10.3.2 (14F89).

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!