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

对着背影说爱祢 提交于 2019-11-27 07:37:05

问题


When I try to do anything in Playground, this pops up before I even finish typing a word.

Error running playground. Failed to launch iOS stub for playground: The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died).

and when I just try to run IOS Simulator I get the following error

Unable to boot the iOS Simulator.

oh and this error just popped up

An error was encountered while running (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?


回答1:


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)).

Upon enabling it, and restarting Xcode everything should work like a charm.

Note/Update:

If you're having trouble finding, or allowing, the debugserver simply try, temporarily, disabling your firewall and restart 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.




回答2:


Currently the Xcode 6 beta needs to reside in \Applications for the playground and simulator to work. After you move it there you need to reboot.




回答3:


This error popped up for me when I closed the simulator before Xcode finished attaching my application to it. Opening the simulator and running the app again solved this problem.



来源:https://stackoverflow.com/questions/24028635/swift-playground-and-simulator-error-ipc-mig-server-died-unable-to-boot-the-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!