10

With Xcode 9.3 (beta), I'm facing an issue with Xcode tool, while I try to build/run the application (project) for the first time, after Xcode launch/start.

Several times, it prevents project build with the message on status bar:

Waiting for iPhone-X to start

While my simulator is already started and working (There is no any activity, going on, in the simulator).

Here is reference snapshot:

enter image description here

As a temporary solution, I force close Xcode (9.3) and start again.

enter image description here

Is there anyone facing the same issue with Xcode 9.3 beta?

Update: Same issue in Xcode 9.3-Beta 2 also.

Udara Abeythilake
  • 1,215
  • 1
  • 20
  • 31
Krunal
  • 77,632
  • 48
  • 245
  • 261
  • why are you still in the beta version of Xcode? you should definitely update this will hopefully fix this problem! – Nazim Kerimbekov Feb 05 '18 at 09:27
  • 1
    @Fozoro - Dear it's latest beta for Xcode tool [New Tools for 64-bit Support in Xcode 9.3 Beta](https://developer.apple.com/news/?id=01242018d) and I'm associated with R&D division in my organization, hence I must analyze upcoming changes in technology in advance. – Krunal Feb 05 '18 at 09:29
  • Oh my bad, sorry didn't pay attention, I thought you where using the Xcode beta that was released this summer – Nazim Kerimbekov Feb 05 '18 at 09:31
  • 2
    It works the first time for me, but subsequent to that fails. I have to remember to quit XCode after first run, or I have to force-quit when it stalls the second time – Airsource Ltd Feb 06 '18 at 19:32
  • 2
    This is a known issue with the beta. – russbishop Feb 19 '18 at 18:12
  • 3
    This issue still occurs with Xcode 9.3 beta 3. – Steven Peterson Feb 22 '18 at 16:22

5 Answers5

2

Here is How I fixed:

Due to quirks (most likely Simulator bugs) in the Simulator launching on both Xcode 8 and 9, there is no common code to have it launch successfully on both Xcodes. Through experimenting, I have found these to be most reliable:

Xcode 9:

killall Simulator
xcrun simctl boot <device_id>
open `xcode-select -p`/Applications/Simulator.app

Xcode 8:

killall Simulator
xcrun simctl shutdown booted
xcrun instruments -w <device_id>

refer: [iOS 11][Xcode 9] launch, install, start hangs Simulator #209

MichaelMao
  • 528
  • 6
  • 15
1

What (most of the time) works for me, is first launch it on a device. Kill it and then run it on a simulator.

basvk
  • 4,437
  • 3
  • 29
  • 49
0

Make sure you don't have the previous Xcode's version of Simulator running when you attempt to run Simulator from the new Xcode, because Xcode will attempt to use that one. (each Xcode bundles it's own Simulator)

Shut down the old Simulator, and try again.

Also, make sure in Xcode > Preferences > Locations > Command Line Tools is pointing to the current Xcode build.

David James
  • 2,430
  • 1
  • 26
  • 35
0

What worked for me : open the simulator device manually (File -> Open Device -> pick the one). Then restart it by going to Device -> restart. Then try rerunning on xcode.

Ben G
  • 3,965
  • 3
  • 30
  • 34
-2

I've experienced this lots of times especially in beta releases, until I discovered a 'hack' or perhaps a nice way to prevent such issue. But before that, I might add as well this SO link that has a compilation of .dmg Xcode download links. How to download Xcode DMG or XIP file?

TL;DR In order to prevent this kind of issue, just stop debugging or click on STOP button before building/running your application.

Glenn Posadas
  • 12,555
  • 6
  • 54
  • 95