我之前使用Xcode 14成功地运行iOS模拟器,而我的Mac最近更新了最新版本的Xcode,即Xcode 15,然后我就无法从新的模拟器中启动设备了。
我尝试了许多不同的方法,收集自多个来源,但都没有成功。以下是我已经尝试过的几个方法,但都没有对我起作用:
我会非常感激任何帮助!
2023年9月28日更新:
我刚刚升级了macOS到最新版本v14,名为(Sonoma),并尝试再次清除所有缓存,但仍然没有效果 :(
2023年9月29日更新:
我还尝试下载了最近的3个iOS版本,有趣的是iOS 15对我来说可以工作,而其他两个版本仍然无法工作。
2023年11月16日更新(重要):
我刚刚重新打开模拟器,不知何故它突然自动开始工作了,而我什么都没做。不确定苹果更新了什么,使其开始工作。无论如何,这是个好消息,我猜苹果可能已经意识到了这个错误,并默默发布了修复程序。
我尝试了许多不同的方法,收集自多个来源,但都没有成功。以下是我已经尝试过的几个方法,但都没有对我起作用:
- 从这里删除存储中的所有Xcode缓存,可以使用cli或UI,如此建议:Flutter: XCode error "Unable to boot the Simulator"。
- 尝试这里的所有可能答案:https://developer.apple.com/forums/thread/667088。
- 按照这篇文章的指示进行操作:https://medium.com/@liwp.stephen/my-solution-to-solve-unable-to-boot-the-ios-simulator-39bbb4aad100。
- 重新安装Xcode并删除所有相关文件:https://byby.dev/uninstall-xcode#:~:text=Delete%20old%20simulators%20and%20devices,moving%20them%20to%20the%20Trash。
- 将Xcode降级至v14。
xcrun simctl boot 39C3D624-968A-49F7-A155-AC9AC1A81B52
Unable to boot the Simulator.
Domain: NSPOSIXErrorDomain
Code: 60
Failure Reason: launchd failed to respond.
User Info: {
DVTErrorCreationDateKey = "2023-09-26 04:06:49 +0000";
IDERunOperationFailingWorker = "_IDEInstalliPhoneSimulatorWorker";
Session = "com.apple.CoreSimulator.SimDevice.AC5CB945-2257-4E8C-AA61-ABC5AC147D84";
}
--
Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding
Domain: com.apple.SimLaunchHostService.RequestError
Code: 4
--
Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
"device_model" = "iPhone16,1";
"device_osBuild" = "17.0 (21A328)";
"device_platform" = "com.apple.platform.iphonesimulator";
"dvt_coredevice_version" = "348.1";
"dvt_mobiledevice_version" = "1643.2.4";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 23640;
"operation_errorCode" = 60;
"operation_errorDomain" = NSPOSIXErrorDomain;
"operation_errorWorker" = "_IDEInstalliPhoneSimulatorWorker";
"operation_name" = IDERunOperationWorkerGroup;
"param_debugger_attachToExtensions" = 0;
"param_debugger_attachToXPC" = 1;
"param_debugger_type" = 3;
"param_destination_isProxy" = 0;
"param_destination_platform" = "com.apple.platform.iphonesimulator";
"param_diag_MainThreadChecker_stopOnIssue" = 0;
"param_diag_MallocStackLogging_enableDuringAttach" = 0;
"param_diag_MallocStackLogging_enableForXPC" = 1;
"param_diag_allowLocationSimulation" = 1;
"param_diag_checker_tpc_enable" = 1;
"param_diag_gpu_frameCapture_enable" = 0;
"param_diag_gpu_shaderValidation_enable" = 0;
"param_diag_gpu_validation_enable" = 0;
"param_diag_memoryGraphOnResourceException" = 0;
"param_diag_queueDebugging_enable" = 1;
"param_diag_runtimeProfile_generate" = 0;
"param_diag_sanitizer_asan_enable" = 0;
"param_diag_sanitizer_tsan_enable" = 0;
"param_diag_sanitizer_tsan_stopOnIssue" = 0;
"param_diag_sanitizer_ubsan_stopOnIssue" = 0;
"param_diag_showNonLocalizedStrings" = 0;
"param_diag_viewDebugging_enabled" = 1;
"param_diag_viewDebugging_insertDylibOnLaunch" = 1;
"param_install_style" = 0;
"param_launcher_UID" = 2;
"param_launcher_allowDeviceSensorReplayData" = 0;
"param_launcher_kind" = 0;
"param_launcher_style" = 0;
"param_launcher_substyle" = 0;
"param_runnable_appExtensionHostRunMode" = 0;
"param_runnable_productType" = "com.apple.product-type.application";
"param_structuredConsoleMode" = 1;
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphonesimulator17.0";
"sdk_osVersion" = "17.0";
"sdk_variant" = iphonesimulator;
}
--
System Information
macOS Version 13.6 (Build 22G120)
Xcode 15.0 (22265) (Build 15A240d)
Timestamp: 2023-09-26T11:06:49+07:00
我会非常感激任何帮助!
2023年9月28日更新:
我刚刚升级了macOS到最新版本v14,名为(Sonoma),并尝试再次清除所有缓存,但仍然没有效果 :(
2023年9月29日更新:
我还尝试下载了最近的3个iOS版本,有趣的是iOS 15对我来说可以工作,而其他两个版本仍然无法工作。
2023年11月16日更新(重要):
我刚刚重新打开模拟器,不知何故它突然自动开始工作了,而我什么都没做。不确定苹果更新了什么,使其开始工作。无论如何,这是个好消息,我猜苹果可能已经意识到了这个错误,并默默发布了修复程序。