简体   繁体   English

iOS模拟器连接超时

[英]iOS Simulator connection timed out

When I try to simulate my iOS app using Xcode version 9.4 simulator, it keeps on loading and loading till it sends me the following message: 当我尝试使用Xcode版本9.4模拟器模拟我的iOS应用程序时,它会继续加载和加载,直到它向我发送以下消息:

Failed to initiate service connection to simulator. 无法启动与模拟器的服务连接。 Connection timed out 连接超时

My Internet is fast and I have updated my macOS HighSeirra 10.13.4 in no time. 我的互联网很快,我已经立即更新了我的macOS HighSeirra 10.13.4。

Close Xcode Properly (from your dock as well ) 正确关闭 Xcode(从您的底座也是如此)

Close simulator 关闭模拟器

And Restart Xcode and Simulator. 重新启动 Xcode和模拟器。

Let it build & index the project 让它构建和索引项目

And it should work fine after that.. 它应该工作得很好..

Thanks 谢谢

Happy Coding ;) 快乐的编码;)

PS Clear Derived Data , if above steps didn't work for you. PS清除衍生数据,如果上述步骤不适合您。

Close Simulator. 关闭模拟器。

Try Clean your project and Run again. 尝试清理项目并再次运行

If it does not help try restart XCode 如果没有帮助尝试重启XCode

Is it does not help try reboot your Mac 它是没有帮助尝试重启你的Mac

PS Please check if you have only one running copy of simulator PS请检查您是否只有一个正在运行的模拟器副本

Clean your project [By pressing Command+Option+Shift+K] or [Command+Shift+K]. 清理项目[按Command + Option + Shift + K]或[Command + Shift + K]。 This will solve your issue. 这将解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM