Xcode 10.0 Simulator错误"Mach错误-308-(ipc/mig)服务器死亡"; [英] Xcode 10.0 Simulator error "Mach error -308 - (ipc/mig) server died"

查看:161
本文介绍了Xcode 10.0 Simulator错误"Mach错误-308-(ipc/mig)服务器死亡";的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode Simulator无法启动.运行项目后,模拟器无法启动,并且负载栏最终卡住了.在关闭显示此错误的模拟器后,它还会显示此错误

Xcode Simulator won't boot. After running the project the simulator does not boot and the load bar is stuck at the end. Also it shows this error after I closed the simulator showing this error

 The operation couldn’t be completed. (Mach error -308 - (ipc/mig) server died)

感谢您的帮助!

推荐答案

8个月前的答案.当您安装替代的Xcode版本(例如beta)或早期版本时,会发生此问题.要解决此问题,您需要重新安装Xcode命令行工具.

8 months ago the answer. This problem occurs when you install an alternative Xcode version like betas or previous versions. To solve this problem you need reinstall Xcode command line tools.

由于xcode-select命令中没有重新安装选项,因此需要删除以下命令行工具:

As there is no reinstall option in xcode-select command you need to remove the current command line tools as bellow:

sudo rm -rf /Library/Developer/CommandLineTools

验证xcode-select是否是正确的路径

xcode-select -p

输出类似于:

/Applications/Xcode.app/Contents/Developer

重新安装命令行工具

sudo xcode-select --install

现在您需要重启系统.

重新启动系统后,您需要启动Xcode. Xcode之后会出现其他组件.

After reboot your system you need to launch the Xcode. Son after the Xcode additional components will appear.

安装完成后,您的模拟器正常运行.

After concluding the installation your simulator works right.

这篇关于Xcode 10.0 Simulator错误"Mach错误-308-(ipc/mig)服务器死亡";的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆