"Failed to initiate service connection to simulator"
Tried to clean app, reinstall it, delete derived data, reset simulator settings, restart xCode. I've also heard other people solved problems with their simulators by recreating the simulator. I tried that as well. When I press create, I get the very same error message: "Error returned in reply: Connection invalid"
Running the Simulator (or CoreSimulator service) from multiple versions of Xcode at the same time is not supported.
Be sure you completely close one version of Xcode/Simulator.app before you open a different version.
Also be aware that Console.app on Sierra connects to CoreSimulator to present the simulated device's logs. That can keep a connection to CoreSimulator alive when attempting to switch versions.
Even this occurs on Xcode 8.0 stable version.
Got it solved by closing Xcode 7 and its simulator.
It seems that when you are working on Xcode 8 and its simulator then Xcode 7 simulator should not remain open.
Below is screenshot of simulator state for Xcode 7 when you're working on Xcode 8.
If fixes like delete derived-data, reset simulator content doesn't works then restart your system.
It seems the problem sorted itself out after I came to work the second day. That means a computer restart fixed it for me
This happens when you try to run a project in
Xcode 8
in simulator mode and theXcode 7
's simulator is still running.It should run properly after that.