Xcode模拟器偶现黑屏卡顿及Mach error -308问题求助
Xcode 卡在“Launching”状态,模拟器黑屏并抛出 Mach error -308 (ipc/mig server died)
环境信息
- Xcode 14.3(14E222b)
- macOS Ventura 13.0
- 2023款14英寸M2 Max MacBook Pro
问题现象
- 构建运行应用时,Xcode频繁卡在“Launching”状态,模拟器弹出黑屏界面
- 退出模拟器后,Xcode抛出
Mach error -308(ipc/mig server died)错误 - 问题约每两次运行就出现一次,且旧版Xcode中同样存在该问题
已尝试的无效方案
- 清理DerivedData
- 重装Xcode
- 重置macOS系统
- 切换不同模拟器设备
- 移除所有Target的排除架构参数
错误详情及日志
错误截图

错误日志
详情 操作无法完成。(Mach error -308 - (ipc/mig) server died) Domain: NSMachErrorDomain Code: -308 User Info: { DVTErrorCreationDateKey = "2023-05-25 14:19:36 +0000"; IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher; } -- 分析事件: com.apple.dt.IDERunOperationWorkerFinished : { "device_model" = "iPhone15,2"; "device_osBuild" = "16.4 (20E247)"; "device_platform" = "com.apple.platform.iphonesimulator"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = "x86_64"; "operation_duration_ms" = 29517; "operation_errorCode" = "-308"; "operation_errorDomain" = NSMachErrorDomain; "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher; "operation_name" = IDERunOperationWorkerGroup; "param_consoleMode" = 0; "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" = 0; "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_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "iphonesimulator16.4"; "sdk_osVersion" = "16.4"; "sdk_variant" = iphonesimulator; } -- 系统信息 macOS版本 13.0 (Build 22A8380) Xcode 14.3 (21812) (Build 14E222b) 时间戳: 2023-05-25T19:49:36+05:30
内容的提问来源于stack exchange,提问作者Charan Ganesh
相关产品推荐
相关产品推荐

