Xcode 无法连接到 IOS 模拟器

Xcode cannot connect to IOS simulator

最近编译到模拟器时经常报错:

我的解决方案是关闭模拟器并重新编译应用程序,大部分时间都可以。但这对我来说很烦人。有没有更好的解决办法?

环境:

尝试重置模拟器

IOS 模拟器 => 重置内容和设置..

你可以通过更多类型解决问题

选择 - 1

Restart Mac can solve the problem for me.

选择 - 2

In this case,tried to run the app on a iPhone 6 simulator when I got this error. Quitted the simulator only and re-ran the app on iPhone 5s (8.1) - it worked fine.

After a while I changed the target back to iPhone 6 (without quitting it), and ran the app against it - no error shown..

选择 3

iOS Simulator > Reset Contents and Settings...