删除/private/tmp后无法启动iOS模拟器 [英] Unable to boot the iOS Simulator after deleting /private/tmp

查看:78
本文介绍了删除/private/tmp后无法启动iOS模拟器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这周我无法启动模拟器,我尝试了一些文章中提供的几种解决方案,但是它不起作用.我的MacOS版本是OS X 10.10.5(14F27),而我的模拟器是iOS 8.4.

This week I cannot boot my Simulator, I tried several solutions from some articles, but it doesn't work. My MacOS version is OS X 10.10.5 (14F27), and my Simulator is iOS 8.4.

我从〜/Library/Logs/CoreSimulator/CoreSimulator.log

8月27日11:29:14 LL-MBP.local CoreSimulatorService [8316]:可以 未注册服务com.apple.SystemConfiguration.PPPController: launch_sim_register_endpoint:0xfffffecc 8月27日11:29:14 LL-MBP.local CoreSimulatorService [8316]:无法注册服务 com.apple.audio.audiohald:launch_sim_register_endpoint:0x44e 8月27日 11:29:14 LL-MBP.local CoreSimulatorService [8316]:无法 注册服务 com.apple.coreservices.lsuseractivity.simulator支持: launch_sim_register_endpoint:0x44e 8月27日11:29:14 LL-MBP.local CoreSimulatorService [8316]:无法注册服务 com.apple.FSEvents:launch_sim_register_endpoint:0x44e 8月27日 11:29:14 LL-MBP.local CoreSimulatorService [8316]:无法 注册服务com.apple.SystemConfiguration.configd: launch_sim_register_endpoint:0x44e 8月27日11:29:14 LL-MBP.local CoreSimulatorService [8316]:无法注册服务 IndigoHIDRegistrationPort:launch_sim_register_endpoint:0x44e 8月27日 11:29:14 LL-MBP.local CoreSimulatorService [8316]:无法 注册服务PurpleFBTVOutServer:launch_sim_register_endpoint: 0x44e 8月27日11:29:14 LL-MBP.local CoreSimulatorService [8316]: 无法注册服务PurpleFBServer: launch_sim_register_endpoint:0x44e 8月27日11:29:14 LL-MBP.local CoreSimulatorService [8316]:错误域= NSPOSIXErrorDomain 代码= 60无法启动iOS模拟器." UserInfo = 0x7fbb204683f0 {NSLocalizedDescription =无法启动iOS模拟器. NSLocalizedFailureReason = launchd无法响应.} 8月27日11:29:14 LL-MBP.local CoreSimulatorService [8316]:错误 Domain = NSPOSIXErrorDomain代码= 60无法启动iOS模拟器." UserInfo = 0x7fbb204683f0 {NSLocalizedDescription =无法启动iOS Simulator.,NSLocalizedFailureReason = launchd无法响应.} 8月 27 11:29:14 LL-MBP.local CoreSimulatorService [8316]:错误 Domain = com.apple.CoreSimulator.SimError代码= 146无法在其中查找 当前状态:关机" UserInfo = 0x7fbb20808710 {NSLocalizedDescription =无法在当前状态下查找:关机} 8月27日11:29:14 LL-MBP.local CoreSimulatorService [8316]:错误 查找主机支持端口Aug 27 11:29:14 LL-MBP.local CoreSimulatorService [8316]:错误 Domain = com.apple.CoreSimulator.SimError代码= 146无效的设备 状态" UserInfo = 0x7fbb2083b420 {NSLocalizedDescription =无效的设备 状态} 8月27日11:29:14 LL-MBP.local CoreSimulatorService [8316] :错误Domain = com.apple.CoreSimulator.SimError代码= 146 无法在当前状态下查找:关机" UserInfo = 0x7fbb2080c350 {NSLocalizedDescription =无法在当前状态下查找:关机} 8月27日11:29:14 LL-MBP.local CoreSimulatorService [8316]:错误 Domain = com.apple.CoreSimulator.SimError代码= 146无法在其中查找 当前状态:关机" UserInfo = 0x7fbb2080c350 {NSLocalizedDescription =无法在当前状态下查找:关机} 8月27日11:29:14 LL-MBP.local com.apple.iphonesimulator [8330]: 错误域= NSPOSIXErrorDomain代码= 60无法启动iOS 模拟器." UserInfo = 0x7fda2a9020f0 {NSLocalizedDescription =无法执行 引导iOS模拟器.NSLocalizedFailureReason = launchd失败 }.} 8月27日11:29:14 LL-MBP.local CoreSimulatorService [8316] :错误Domain = com.apple.CoreSimulator.SimError代码= 146 无法在当前状态下查找:关机" UserInfo = 0x7fbb20b0f850 {NSLocalizedDescription =无法在当前状态下查找:关机} 8月27日11:29:14 LL-MBP.local CoreSimulatorService [8316]:错误 查找主机支持端口Aug 27 11:29:14 LL-MBP.local CoreSimulatorService [8316]:错误 Domain = com.apple.CoreSimulator.SimError代码= 146无效的设备 状态" UserInfo = 0x7fbb20b00e20 {NSLocalizedDescription =无效的设备 状态}

Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Could not register service com.apple.SystemConfiguration.PPPController: launch_sim_register_endpoint: 0xfffffecc Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Could not register service com.apple.audio.audiohald: launch_sim_register_endpoint: 0x44e Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Could not register service com.apple.coreservices.lsuseractivity.simulatorsupport: launch_sim_register_endpoint: 0x44e Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Could not register service com.apple.FSEvents: launch_sim_register_endpoint: 0x44e Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Could not register service com.apple.SystemConfiguration.configd: launch_sim_register_endpoint: 0x44e Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Could not register service IndigoHIDRegistrationPort: launch_sim_register_endpoint: 0x44e Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Could not register service PurpleFBTVOutServer: launch_sim_register_endpoint: 0x44e Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Could not register service PurpleFBServer: launch_sim_register_endpoint: 0x44e Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error Domain=NSPOSIXErrorDomain Code=60 "Unable to boot the iOS Simulator." UserInfo=0x7fbb204683f0 {NSLocalizedDescription=Unable to boot the iOS Simulator., NSLocalizedFailureReason=launchd failed to respond.} Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error Domain=NSPOSIXErrorDomain Code=60 "Unable to boot the iOS Simulator." UserInfo=0x7fbb204683f0 {NSLocalizedDescription=Unable to boot the iOS Simulator., NSLocalizedFailureReason=launchd failed to respond.} Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error Domain=com.apple.CoreSimulator.SimError Code=146 "Unable to lookup in current state: Shutdown" UserInfo=0x7fbb20808710 {NSLocalizedDescription=Unable to lookup in current state: Shutdown} Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error looking up host support port Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error Domain=com.apple.CoreSimulator.SimError Code=146 "Invalid device state" UserInfo=0x7fbb2083b420 {NSLocalizedDescription=Invalid device state} Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error Domain=com.apple.CoreSimulator.SimError Code=146 "Unable to lookup in current state: Shutdown" UserInfo=0x7fbb2080c350 {NSLocalizedDescription=Unable to lookup in current state: Shutdown} Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error Domain=com.apple.CoreSimulator.SimError Code=146 "Unable to lookup in current state: Shutdown" UserInfo=0x7fbb2080c350 {NSLocalizedDescription=Unable to lookup in current state: Shutdown} Aug 27 11:29:14 LL-MBP.local com.apple.iphonesimulator[8330] : Error Domain=NSPOSIXErrorDomain Code=60 "Unable to boot the iOS Simulator." UserInfo=0x7fda2a9020f0 {NSLocalizedDescription=Unable to boot the iOS Simulator., NSLocalizedFailureReason=launchd failed to respond.} Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error Domain=com.apple.CoreSimulator.SimError Code=146 "Unable to lookup in current state: Shutdown" UserInfo=0x7fbb20b0f850 {NSLocalizedDescription=Unable to lookup in current state: Shutdown} Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error looking up host support port Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : Error Domain=com.apple.CoreSimulator.SimError Code=146 "Invalid device state" UserInfo=0x7fbb20b00e20 {NSLocalizedDescription=Invalid device state}

有人对此有任何想法吗?

Does someone have any idea about this?

我会感激的!

最后,我在@Jeremy Huddleston Sequoia的帮助下解决了此问题.一开始,我在线尝试了许多解决方案,包括删除/private/tmp文件夹.因此,无论我清理了多少次重新安装模拟器,它都无法正常工作.所以要注意这一点

Finally I fixed this issue with @Jeremy Huddleston Sequoia 's help. At the beginning, I tried lots of solutions online, including remove /private/tmp folder. so that caused no matter how many times I clean reinstall simulator, it doesn't work. so be careful about this

推荐答案

这些错误表明未加载launchd_sim或未运行,并且触发了看门狗以通知您失败.

Those errors indicate that launchd_sim is not loaded or not running, and the watchdog fired to notify you of the failure.

如果在OS X 10.10.5中禁用AMFI,则模拟器运行时将不可用,并且可以这样显示.

If you disable AMFI in OS X 10.10.5, the Simulator runtime will be unusable, and it can manifest like this.

但是,在您的情况下,launchd_sim在启动时崩溃.崩溃日志表明,尝试在/private/tmp中创建其状态目录时遇到错误.

However, in your case, launchd_sim is crashing on launch. The crash log indicates that it is encountering an error when trying to create its state directory in /private/tmp.

这种情况可能是您删除了/private/tmp(或错误地重新创建了它).要创建/private/tmp,请执行以下操作:

This can happen you deleted /private/tmp (or incorrectly recreated it). To create /private/tmp do:

sudo mkdir /private/tmp
sudo chmod 1777 /private/tmp

这篇关于删除/private/tmp后无法启动iOS模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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