我已经升级到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
我已经在iPhone X,iPhone 8/8 和iPhone 6 模拟器上尝试使用IOS 11/10.3.1,所有模拟器都具有相同的崩溃结果。如果我在较旧的iOS模拟器(例如iPhone 6 iOS 9.2)上尝试它,则运行良好。
如果我尝试启动多次,即Safari或Chalend的40-50次,有时 可能会运行特定的应用程序,一旦成功运行,它将保留下来会话(直到我在任务切换器上关闭应用程序,然后再出现相同的问题)。我的Xcode编译应用也发生了同样的事情。
我的iMac 2009一直在运行El Capitan和Xcode 8 Fine,我只是用Xcode 9升级到高级Sierra。
我尝试了Xcode 9.1 beta,但同样的问题仍然存在。
请帮忙,谢谢。
感谢 @russbishop关于禁用第三方内核扩展的建议,我找到了罪魁祸首 - 一个周期性的手离开了防火墙!
我用此命令将kext卸载:
kextunload -b com.metakine.handsoff.driver
,iOS模拟器中的所有库存应用程序都可以完全正常。请注意,您必须 Unload the kext。简单地将规则禁用并不能解决问题。
但是,一旦我完成重新激活防火墙,我就无法" kextload "向后驱动器。需要重新启动系统。
我也报告了此问题也可以解开,并希望在下一个版本中看到修复程序。
感谢@JeremyHudDlestonSensequia也为诊断提供了帮助。