简体   繁体   English

Swift Playground和Simulator Error(ipc / mig)服务器死机,无法启动iOS模拟器

[英]Swift Playground and Simulator Error (ipc/mig) server died, Unable to boot the iOS Simulator

When I try to do anything in Playground, this pops up before I even finish typing a word. 当我尝试在Playground中做任何事情时,在我输入一个单词之前会弹出。

Error running playground. 运行操场时出错。 Failed to launch iOS stub for playground: The operation couldn't be completed. 无法为游乐场启动iOS存根:操作无法完成。 (Mach error -308 - (ipc/mig) server died). (马赫错误-308 - (ipc / mig)服务器死了)。

and when I just try to run IOS Simulator I get the following error 当我只是尝试运行IOS模拟器时,我收到以下错误

Unable to boot the iOS Simulator. 无法启动iOS模拟器。

oh and this error just popped up 哦,这个错误刚刚出现

An error was encountered while running (Domain = DTiPhoneSimulatorErrorDomain, Code = 2) 运行时遇到错误(Domain = DTiPhoneSimulatorErrorDomain,Code = 2)

I tried rebooting, I closed out and opened again, I deselected file and reselected. 我尝试重新启动,我关闭并再次打开,我取消选择文件并重新选择。 Just keeps happening. 只是不断发生。 Anyone have a solution? 有人有解决方案吗?

Your firewall is blocking the debugger, you need to allow it to connect: 您的防火墙阻止了调试器,您需要允许它连接:

TCP out 127.0.0.1:63748

Or allow the debugserver process open access (whichever you, or your firewall, prefer(s)). 或者允许debugserver进程开放访问(无论您或您的防火墙,更喜欢)。

Upon enabling it, and restarting Xcode everything should work like a charm. 一旦启用它,并重新启动Xcode,一切都应该像魅力一样。

Note/Update: 注意/更新:

If you're having trouble finding, or allowing, the debugserver simply try, temporarily, disabling your firewall and restart xcode. 如果您在查找或允许时遇到问题, debugserver只需暂时尝试禁用防火墙并重新启动xcode。 Does the playground work? 游乐场有用吗? Oh, and don't forget to make sure you've got the assistant view open and the output box showing. 哦,不要忘记确保你打开助手视图并显示输出框。

Currently the Xcode 6 beta needs to reside in \\Applications for the playground and simulator to work. 目前,Xcode 6 beta需要驻留在操场和模拟器的应用程序中。 After you move it there you need to reboot. 移动后,您需要重新启动。

This error popped up for me when I closed the simulator before Xcode finished attaching my application to it. 当我在Xcode完成将我的应用程序附加到它之前关闭模拟器时,会弹出这个错误。 Opening the simulator and running the app again solved this problem. 打开模拟器并再次运行应用程序解决了这个问题。

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

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