【发布时间】:2018-03-14 06:21:54
【问题描述】:
我已升级到 Xcode 9,但适用于 10.3 和 11 的 iOS 模拟器无法正常工作。尝试运行时,所有股票和我的应用程序都会强制关闭。
当我尝试运行日历、首选项等时,Xcode 控制台出现如下错误。“无法获得有效的进程句柄”是什么意思?
Process handle (com.apple.Preferences, <BSProcessHandle: 0x7fe84552b8b0; Preferences:9270; valid: NO>) is invalid. Returning error {
BKSProcessExitReason = 0;
BKSProcessJobLabel = "UIKitApplication:com.apple.Preferences[0x90bf][6825]";
NSLocalizedFailureReason = "Unable to obtain valid process handle";
}
[com.apple.Preferences] Bootstrap failed with error: <NSError: 0x600000846c60; domain: BKSProcessErrorDomain; code: 1 (bootstrap-failed); reason: "Unable to obtain valid process handle">
Bootstrapping failed for <FBApplicationProcess: 0x7ffae944f990; com.apple.Preferences; pid: -1> with error: Error Domain=BKSProcessErrorDomain Code=1 "Unable to bootstrap process with bundleID com.apple.Preferences" UserInfo={NSLocalizedFailureReason=Unable to obtain valid process handle, BKSProcessExitReason=0, BSErrorCodeDescription=bootstrap-failed, BKSProcessJobLabel=UIKitApplication:com.apple.Preferences[0x90bf][6825], NSLocalizedDescription=Unable to bootstrap process with bundleID com.apple.Preferences}
Process handle (com.apple.mobilecal, <BSProcessHandle: 0x7fe845525860; MobileCal:9363; valid: NO>) is invalid. Returning error {
BKSProcessExitReason = 0;
BKSProcessJobLabel = "UIKitApplication:com.apple.mobilecal[0xf53][6825]";
NSLocalizedFailureReason = "Unable to obtain valid process handle";
}
[com.apple.mobilecal] Bootstrap failed with error: <NSError: 0x604000643ae0; domain: BKSProcessErrorDomain; code: 1 (bootstrap-failed); reason: "Unable to obtain valid process handle">
Bootstrapping failed for <FBApplicationProcess: 0x7ffaeb141220; com.apple.mobilecal; pid: -1> with error: Error Domain=BKSProcessErrorDomain Code=1 "Unable to bootstrap process with bundleID com.apple.mobilecal" UserInfo={NSLocalizedFailureReason=Unable to obtain valid process handle, BKSProcessExitReason=0, BSErrorCodeDescription=bootstrap-failed, BKSProcessJobLabel=UIKitApplication:com.apple.mobilecal[0xf53][6825], NSLocalizedDescription=Unable to bootstrap process with bundleID com.apple.mobilecal}
Unable to find framework using path: /System/Library/Frameworks/VideoSubscriberAccount.framework
我已经在 iOS 11 / 10.3.1 的 iPhone X、iPhone 8/8+ 和 iPhone 6+ 模拟器上进行了尝试,都具有相同的崩溃结果。如果我在 iPhone 6+ iOS 9.2 等较旧的 iOS 模拟器上试用它,那么它运行良好。
如果我尝试多次启动它,即 Safari 或日历启动 40 到 50 次,有时特定应用程序可能会运行,并且一旦成功运行,其余时间都会保持这种状态会话(直到我在任务切换器上关闭应用程序,然后再次出现同样的问题)。我的 Xcode 编译应用程序也是如此。
我的 iMac 2009 一直在运行 El Capitan 和 Xcode 8,而我刚刚升级到带有 Xcode 9 的 High Sierra。
我尝试了 Xcode 9.1 Beta,但同样的问题仍然存在。
请帮忙,谢谢。
【问题讨论】:
-
请提交错误。在模拟器启动并发生此故障后,附加“sysdiagnose -q”和“xcrun simctl diagnostic”的输出。用雷达#回复,以便我们进行调查。
-
谢谢,我将提交一份包含该信息的错误报告。我注意到我的 CoreSimulator.log 中有很多行这样写: Oct 5 15:56:31 MYMAC CoreSimulatorService[10637]
: Error Domain=com.apple.CoreSimulator.SimError Code=162 "Incompatible device" UserInfo= {NSLocalizedDescription=不兼容的设备}。这是什么意思? -
我已按要求提交了带有日志文件的错误报告#34829500,请调查并建议如何修复它,谢谢。
-
@Andy 出于某种原因,您附加的 sysdiagnose 不包含您所说的正在崩溃的进程的任何崩溃日志。您能否附上一些来自 ~/Library/Logs/DiagnosticReports 的相关崩溃日志?
-
@Andy 另外,
simctl diagnose似乎是在您启动设备但未重现问题时采取的。因此,日志不包含启动失败的实际原因。simctl diagnose复制时可以运行吗?
标签: ios xcode ios-simulator ios11 xcode9