When I run my basic Xcode project in simulator, I got the below issue:-
Failed to initiate service connection to simulator.
Unable to con
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.
Cmd+Shift+K
it's work for me
In Xcode 9 there is Simulator > Hardware > Erase All Content and Settings
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.
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.