3

Since upgrading to Mojave I have been getting the following error when I try to run the simulator.

enter image description here

The simulator runs when you acknowledge the error, but the app is not uploaded from Xcode to the simulator.

If I connect an actual device I can build and run the app no problem. I have tried this with a few different apps so it doesn't appear to be app specific.

The log in the Mac console shows:

default 11:13:49.003902 +1000   Xcode    iOSSimulator: Could not launch simulator: -600
default 11:13:49.004097 +1000   Xcode    iOSSimulator: <DVTiPhoneSimulator (0x7fd0b309d380), iPhone X, unknown class, 12.2 (16E226), FAA893B1-BCCB-402E-87DD-24DC7710B4A5> could not launch simulator for com.apple.platform.iphonesimulator

What I have tried:

  1. Turn it off and on again. Xcode, simulator and laptop.
  2. Cleaned the build folder and deleted derived data.
  3. None of the solutions from this stack overflow question worked.
  4. I also tried the solution from this question (albeit it was a different error) but it doesn't work either.
  5. I looked up OSStatus error -600 on google - it is procNotFound, which didn't really help much. It means no eligible process with specified descriptor

Any suggestions would be appreciated!

Reefwing
  • 2,242
  • 1
  • 22
  • 23
  • Note that the latest version of Xcode (v10.3) seems to have fixed this issue. You will need to reboot your computer after upgrading to see or add simulators. I would try this approach first. – Reefwing Jul 24 '19 at 09:11

1 Answers1

3

Restart the computer (not just Xcode). Then go into Library / Developer / CoreSimulator / Devices and throw everything in the trash. Then launch Xcode, go into Devices and Simulators, and delete all simulators from the Simulators pane. Now create one simulator in the Simulators pane. You will be able to build and run on it.

EDIT The OP reports that even this was insufficient to clean out the problematic dead simulators. It was also necessary to say xcrun simctl delete unavailable in the Terminal.

matt
  • 515,959
  • 87
  • 875
  • 1,141
  • Thanks matt - I deleted all the old simulators listed and added a new one. But then I am back with error -600. – Reefwing Jul 08 '19 at 02:13
  • What did end up working was then shutting down Xcode and the simulator and then running the command "xcrun simctl delete unavailable" in Terminal. I think your actions contributed to the cure, so you get the points! – Reefwing Jul 08 '19 at 02:29
  • 1
    Ok but I really should add your solution to my answer because comments are ephemeral. That way we have a better chance of helping others! – matt Jul 08 '19 at 02:42