Xcode 8 beta simulator fails to run app after acci

2019-04-19 18:18发布

"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

4条回答
何必那么认真
2楼-- · 2019-04-19 18:35

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.

查看更多
SAY GOODBYE
3楼-- · 2019-04-19 18:52

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.

查看更多
手持菜刀,她持情操
4楼-- · 2019-04-19 18:52

It seems the problem sorted itself out after I came to work the second day. That means a computer restart fixed it for me

查看更多
够拽才男人
5楼-- · 2019-04-19 18:59

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.

查看更多
登录 后发表回答