【发布时间】:2015-11-21 06:38:48
【问题描述】:
本周我无法启动我的模拟器,我尝试了一些文章中的几种解决方案,但它不起作用。我的 MacOS 版本是 OS X 10.10.5 (14F27),我的模拟器是 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.simulatorsupport: 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 Code=60 "无法启动 iOS 模拟器。"用户信息=0x7fbb204683f0 {NSLocalizedDescription=无法启动 iOS 模拟器。, NSLocalizedFailureReason=launchd 未能响应。} 8 月 27 日 11:29:14 LL-MBP.local CoreSimulatorService[8316]:错误 Domain=NSPOSIXErrorDomain Code=60 "无法启动 iOS 模拟器。" UserInfo=0x7fbb204683f0 {NSLocalizedDescription=无法启动 iOS 模拟器。,NSLocalizedFailureReason=launchd 未能响应。} 八月 27 11:29:14 LL-MBP.local CoreSimulatorService[8316]:错误 Domain=com.apple.CoreSimulator.SimError Code=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 Code=146 "无效设备 state" UserInfo=0x7fbb2083b420 {NSLocalizedDescription=无效设备 state} Aug 27 11:29:14 LL-MBP.local CoreSimulatorService[8316] : 错误域=com.apple.CoreSimulator.SimError 代码=146 “无法在当前状态下查找:关机” UserInfo=0x7fbb2080c350 {NSLocalizedDescription=无法在当前状态下查找:关机} 8 月 27 日 11:29:14 LL-MBP.local CoreSimulatorService[8316]:错误 Domain=com.apple.CoreSimulator.SimError Code=146 "无法在 当前状态:关机” UserInfo=0x7fbb2080c350 {NSLocalizedDescription=无法在当前状态下查找:关机} 8 月 27 日 11:29:14 LL-MBP.local com.apple.iphonesimulator[8330]: Error Domain=NSPOSIXErrorDomain Code=60 "无法启动 iOS 模拟器。” UserInfo=0x7fda2a9020f0 {NSLocalizedDescription=无法 启动 iOS 模拟器。, NSLocalizedFailureReason=launchd 失败 响应。} 8 月 27 日 11:29:14 LL-MBP.local CoreSimulatorService[8316] : 错误域=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 Code=146 "无效设备 state" UserInfo=0x7fbb20b00e20 {NSLocalizedDescription=无效设备 状态}
有人对此有任何想法吗?
我会很感激的!
最后我在@Jeremy Huddleston Sequoia 的帮助下解决了这个问题。一开始,我在网上尝试了很多解决方案,包括删除 /private/tmp 文件夹。所以无论我清理多少次重新安装模拟器,它都不起作用。所以要小心这个
【问题讨论】:
-
你重启电脑了吗?
-
更新了标题,因为我们知道了原因。希望这将有助于吸引其他搜索相同问题的人的注意力。
标签: ios xcode ios-simulator simulator