xcode 无法启动 iOS 模拟器 (ios 7.1)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/32052037/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Unable to boot the iOS Simulator (ios 7.1)
提问by Dr. Jag
I am facing a problem. When I try to run the simulator iPhone 5s (iOS 7.1) a message pops up saying "
我正面临一个问题。当我尝试运行模拟器 iPhone 5s (iOS 7.1) 时,会弹出一条消息说“
Unable to boot the iOS Simulator
无法启动 iOS 模拟器
". Though if I run the iPhone 5 or iPhone 4s simulators (iOS 7.1
) or iPhone 5s (iOS 8.3/8.4
) all work fine.
"。虽然如果我运行 iPhone 5 或 iPhone 4s 模拟器 ( iOS 7.1
) 或 iPhone 5s ( iOS 8.3/8.4
) 一切正常。
I am running OS X Yosemite
(10.10.5), Xcode 6.4
and iOS simulator
iPhone 5s
(iOS 7.1
).
我正在运行OS X Yosemite
(10.10.5)Xcode 6.4
和iOS simulator
iPhone 5s
( iOS 7.1
)。
Update:
更新:
CoreSimulator.log:
Error Domain=NSPOSIXErrorDomain Code=60 "Unable to boot the iOS Simulator." UserInfo=0x7ffe8d94f990 {NSLocalizedDescription=Unable to boot the iOS Simulator., NSLocalizedFailureReason=launchd failed to respond.}
CoreSimulator.log:
错误域=NSPOSIXErrorDomain 代码=60“无法启动 iOS 模拟器。” UserInfo=0x7ffe8d94f990 {NSLocalizedDescription=无法启动 iOS 模拟器。,NSLocalizedFailureReason=launchd 未能响应。}
DiagnosticReports:
Crashed Thread: 0 Configuration error: Could not bind system logger socket.
Dispatch queue: com.apple.main-thread
诊断报告:
崩溃线程:0 配置错误:无法绑定系统记录器套接字。
调度队列:com.apple.main-thread
Exception Type: EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes: 0x0000000000000001, 0x0000000000000000
异常类型:EXC_BAD_INSTRUCTION (SIGILL)
异常代码:0x0000000000000001, 0x0000000000000000
Thank you.
谢谢你。
回答by Michael Long
For people having the "Unable to boot the iOS Simulator" issue while running Xcode 6.x under OS X 10.11 El Capitan, be warned that there is no effective solution as the iOS 7 simulator is functionally incompatible with El Cap.
对于在 OS X 10.11 El Capitan 下运行 Xcode 6.x 时遇到“无法启动 iOS 模拟器”问题的人,请注意没有有效的解决方案,因为 iOS 7 模拟器在功能上与 El Cap 不兼容。
See the following Apple Developer forum thread and read the response by jeremyhu:
请参阅以下 Apple Developer 论坛主题并阅读 jeremyhu 的回复:
https://forums.developer.apple.com/thread/5612
https://forums.developer.apple.com/thread/5612
"This is a specific incompatibility of the iOS 7.1 libxpc being too old to satisfy the needs of the host's libsystem_stats.dylib."
“这是 iOS 7.1 libxpc 太旧而无法满足主机的 libsystem_stats.dylib 需求的特定不兼容性。”
Posting this because I spent hours pounding my head into the wall trying to "fix" an unfixable problem.
发布这个是因为我花了几个小时把头撞到墙上试图“解决”一个无法解决的问题。
回答by Jeremy Huddleston Sequoia
The "Unable to boot the iOS Simulator" error message usually appears as a result of CoreSimulator failing to kick off launchd_sim to boot the simulated device.
“无法启动 iOS 模拟器”错误消息通常是由于 CoreSimulator 无法启动 launchd_sim 来启动模拟设备而出现的。
In your case, the issue is that launchd_sim is crashing on launch because it can't bind to the syslog socket, which is located at /private/tmp/com.apple.CoreSimulator.SimDevice.[DEVICE UDID].launchd_sim/syslogso
在您的情况下,问题是 launchd_sim 在启动时崩溃,因为它无法绑定到位于 /private/tmp/com.apple.CoreSimulator.SimDevice.[DEVICE UDID].launchd_sim/syslogso 的 syslog 套接字
Try deleting /private/tmp/com.apple.CoreSimulator.SimDevice.*:
尝试删除 /private/tmp/com.apple.CoreSimulator.SimDevice.*:
sudo rm -rf /private/tmp/com.apple.CoreSimulator.SimDevice.*
回答by Dr. Jag
This issue "Unable to Boot the iOS Simulator" exists because of System Integrity Protection in El Cap. Simulator is definitely compatible with El Capitan if you turn of SIP. Here is how to do it:
由于 El Cap 中的系统完整性保护,存在此问题“无法启动 iOS 模拟器”。如果您关闭 SIP,Simulator 绝对与 El Capitan 兼容。这是如何做到的:
How to turn off System Integrity Protection in El Capitan:
如何在 El Capitan 中关闭系统完整性保护:
Click the ? menu. Select Restart...
点击 ?菜单。选择重新启动...
Hold down command-R to boot into the Recovery System.
按住 command-R 启动到恢复系统。
Click the Utilities MENU and select Terminal.
单击实用程序菜单并选择终端。
Type csrutil disable and press return.
键入 csrutil disable 并按回车键。
Close the Terminal app.
关闭终端应用程序。
Click the ? menu and select Restart....
点击 ?菜单并选择重新启动...。
Run iOS Simulator Worked for me! Good Luck :)
运行 iOS 模拟器 对我来说有效!祝你好运 :)