Xcode hangs at 'Waiting for <device name> to start...'

Originator:michaelhochs
Number:rdar://37566850 Date Originated:15-Feb-2018 02:17 PM
Status:Open Resolved:
Product:Developer Tools Product Version:9.3 beta (9Q98q)
Classification:Crash/Hang/Data Loss Reproducible:Sometimes
 
Summary:
Xcode 9.3 beta (9Q98q) has an issue where it hangs when selecting ‘Build and run…’ after the build is finished. It seems to be waiting for the simulator to start even though the simulator is already running.

This happens a lot. It seems that making sure no debug session is running right now (by selecting the stop button in Xcode) makes it less likely to happen but even when always doing that it will happen at some point (after ~3 or 4 build & runs).

Steps to Reproduce:
0. Open any Xcode iOS project
1. Select an iOS Simulator (i.e. iPhone X)
2. Click the ‘play’ button to build and run
3. Wait for the app to launch in the simulator
4. Repeat from step 2 on multiple times.

Expected Results:
When clicking the play button any currently running debug session is stopped, the app is recompiled, copied over to the simulator and the simulator launches the app again.

Actual Results:
When clicking the play button any currently running debug session is stopped, the app is recompiled, copied over to the simulator and then Xcode shows ‘Waiting for <device name> to start…’, where <device name> is the name of the selected simulator. Xcode hangs there and does not continue. Waiting for several minutes did nothing. Quitting the simulator and re-running does not help. Clicking on the ‘stop’ button in Xcode does nothing. The button stays active but nothing happens.

Version:
9.3 beta (9Q98q)

Notes:

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!