Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
删除/private/tmp后无法启动iOS模拟器_Ios_Xcode_Ios Simulator_Simulator - Fatal编程技术网

删除/private/tmp后无法启动iOS模拟器

删除/private/tmp后无法启动iOS模拟器,ios,xcode,ios-simulator,simulator,Ios,Xcode,Ios Simulator,Simulator,本周我无法启动模拟器,我尝试了一些文章中的几种解决方案,但都不起作用。我的MacOS版本是OSX10.10.514F27,我的模拟器是iOS8.4 我从~/Library/Logs/CoreSimulator/CoreSimulator.log抓取了日志 8月27日11:29:14 LL-MBP.local CoreSimulatorService[8316]:可以 未注册服务com.apple.SystemConfiguration.PPPController: 启动模拟寄存器端点:0xfff

本周我无法启动模拟器,我尝试了一些文章中的几种解决方案,但都不起作用。我的MacOS版本是OSX10.10.514F27,我的模拟器是iOS8.4

我从~/Library/Logs/CoreSimulator/CoreSimulator.log抓取了日志

8月27日11:29:14 LL-MBP.local CoreSimulatorService[8316]:可以 未注册服务com.apple.SystemConfiguration.PPPController: 启动模拟寄存器端点:0xfffffecc Aug 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支持: 启动模拟寄存器端点:0x44e Aug 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: 启动模拟寄存器端点:0x44e Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316]:无法注册服务 IndigoHIDRegistrationPort:launch_sim_register_endpoint:0x44e Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316]:无法 注册服务目的bTvoutServer:启动\模拟\注册\端点: 0x44e Aug 27 11:29:14 LL-MBP.local核心模拟器服务[8316]: 无法注册服务PurpleFBServer: 启动模拟寄存器端点:0x44e Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316]:错误域=NSPOSIXErrorDomain 代码=60无法启动iOS模拟器。UserInfo=0x7fbb204683f0 {NSLocalizedDescription=无法启动iOS模拟器。, NSLocalizedFailureReason=启动失败。}8月27日11:29:14 LL-MBP.local CoreSimulatorService[8316]:错误 Domain=NSPOSIXErrorDomain Code=60无法启动iOS模拟器。 UserInfo=0x7fbb204683f0{NSLocalizedDescription=无法启动iOS Simulator.,NSLocalizedFailureReason=启动失败。}Aug 27 11:29:14 LL-MBP.本地核心模拟器服务[8316]:错误 Domain=com.apple.CoreSimulator.SimError Code=146无法在中查找 当前状态:Shutdown UserInfo=0x7fbb20808710 {NSLocalizedDescription=无法在当前状态下查找:Shutdown} Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316]:错误 正在查找主机支持端口Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316]:错误 域=com.apple.CoreSimulator.SimError代码=146无效设备 状态UserInfo=0x7fbb2083b420{NSLocalizedDescription=无效设备 state}8月27日11:29:14 LL-MBP.local CoreSimulatorService[8316] :Error Domain=com.apple.CoreSimulator.SimError Code=146 无法在当前状态下查找:Shutdown UserInfo=0x7fbb2080c350 {NSLocalizedDescription=无法在当前状态下查找:Shutdown} Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316]:错误 Domain=com.apple.CoreSimulator.SimError Code=146无法在中查找 当前状态:Shutdown UserInfo=0x7fbb2080c350 {NSLocalizedDescription=无法在当前状态下查找:Shutdown} 8月27日11:29:14 LL-MBP.local.com.apple.iphonesimulator[8330]: 错误Domain=NSPOSIXErrorDomain Code=60无法启动iOS 模拟器。UserInfo=0x7fda2a9020f0{NSLocalizedDescription=无法 引导iOS模拟器,NSLocalizedFailureReason=启动失败 回复。}8月27日11:29:14 LL-MBP.local CoreSimulatorService[8316] :Error Domain=com.apple.CoreSimulator.SimError Code=146 无法在当前状态下查找:Shutdown UserInfo=0x7fbb20b0f850 {NSLocalizedDescription=无法在当前状态下查找:Shutdown} Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316]:错误 正在查找主机支持端口Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316]:错误 域=com.apple.CoreSimulator.SimError代码=146无效设备 状态UserInfo=0x7fbb20b00e20{NSLocalizedDescription=无效设备 国家}

有人知道这件事吗

我会很感激的


最后,我在@Jeremy Huddleston Sequoia的帮助下解决了这个问题。起初,我在网上尝试了很多解决方案,包括remove/private/tmp folder。所以,无论我清理了多少次模拟器,它都不起作用。因此,请注意这一点。

这些错误表明launchd_sim卡未加载或未运行,并且启动了看门狗以通知您故障

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

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

如果删除/private/tmp或错误地重新创建它,则可能会发生这种情况。要创建/private/tmp,请执行以下操作:

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

你重启电脑了吗?更新了标题
既然我们知道了原因。希望这将有助于吸引其他搜索相同问题的人的注意。这是我在尝试启动xcode和模拟器时的system.log:Class IDEBlockScrollView在/Applications/xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/IDEKit和/Applications/Xcode.app/Contents/PlugIns/IDEProductsUI.ideplugin/Contents/MacOS/IDEProductsUI。将使用其中一个。哪一个是未定义的。8月27日14:57:51 LL-MBP.local.com.apple.usbmuxd[77]:锁定\u V2\u你好\u服务\u名称为\u apple-mobdev2.\u tcp,90a107edI已检查我没有启动参数配置nvram:获取变量时出错-'boot argus':找不到iokit/公共数据system.log中肯定还有很多。你引用的那句话与这里无关。请同时查找任何launchd_sim卡崩溃日志。日志太长,无法粘贴在此处,您能给我一个电子邮件地址,以便我将其发送给您吗?