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
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
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.
In Xcode 9 there is Simulator > Hardware > Erase All Content and Settings
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.
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.
Cmd+Shift+K
it's work for me