37

When I run my basic Xcode project in simulator, I got the below issue:-

Failed to initiate service connection to simulator.

Unable to contact local DTServiceHub to bless simulator connection

Xcode 8.0

OS 10.11.6

SWIFT 3

enter image description here

pkc456
  • 8,350
  • 38
  • 53
  • 109

5 Answers5

14

I reset the Simulator by using the "Reset Content and Settings..." and quit my Xcode. Then opened my project again and ran, it worked for me. But I don't know why this error occurred.

Paddy
  • 766
  • 5
  • 16
13

In Xcode 9 there is Simulator > Hardware > Erase All Content and Settings

iPC
  • 5,916
  • 3
  • 26
  • 38
10

I encountered the same error message in Xcode 9.1, but instead of erasing configurations under Simulator > Hardware, I pressed the Run button again and my project successfully built & ran.

2

This happened to me when I upgraded to MacOS Mojave cause dark mode is awesome. The solution wasn't any of the above, but instead a system RESTART did the trick.

Ethan Parker
  • 2,986
  • 1
  • 23
  • 29
0
  1. Reset the Simulator by using the "Reset Content and Settings..."
  2. Target -> build setting -> search debug -> build option -> debug information format -> change debug to DWARF
  3. Cmd+Shift+K

it's work for me

Gowtham Sooryaraj
  • 3,639
  • 3
  • 13
  • 22