Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 8 beta simulator fails to run app after accidentally running Xcode8 simulator

"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"

Failed to initiate service connection  to simulator

like image 643
andrei Avatar asked Oct 04 '16 15:10

andrei


2 Answers

This happens when you try to run a project inXcode 8 in simulator mode and the Xcode 7's simulator is still running.

You only need to close them all(xcode 8, xcode 8 simulator, xcode 7, xcode 7 simulator) then run xcode 8 again.

It should run properly after that.

like image 81
Bryan P Avatar answered Nov 15 '22 06:11

Bryan P


Even this occurs on Xcode 8.0 stable version.

Screenshot 1

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.

Screenshot 2

If fixes like delete derived-data, reset simulator content doesn't works then restart your system.

like image 8
Jayprakash Dubey Avatar answered Nov 15 '22 06:11

Jayprakash Dubey