You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

升级Xcode 14后Flutter应用编译成功但无法在iPhone设备运行:‘无法与辅助应用通信’问题求助

Xcode 14.0.1无法在iPhone设备上运行Flutter应用,报错NSCocoaErrorDomain Code:4099

我开发的是一款Flutter应用,升级到Xcode 14.0.1后遇到了棘手的问题:Xcode编译能成功完成,应用也能正常部署到TestFlight,但就是没法通过Xcode直接在iPhone设备上运行,这直接导致调试工作根本没法开展。我已经按照StackOverflow上的建议多次卸载重装Xcode了,但问题还是没解决,折腾好几天了,求各位大佬支招!

错误详情

无法与辅助应用通信。
Domain: NSCocoaErrorDomain
Code: 4099
Recovery Suggestion: 请重试操作。如果仍失败,请退出并重新启动应用后再次尝试。

User Info: {
    DVTErrorCreationDateKey = "2022-09-29 15:40:53 +0000";
    IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
    NSDebugDescription = "The connection to service named com.apple.companionappd was invalidated: failed at lookup with error 3 - No such process.";
}
--
Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_model" = "iPhone14,3";
    "device_osBuild" = "15.6.1 (19G82)";
    "device_platform" = "com.apple.platform.iphoneos";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 23;
    "operation_errorCode" = 4099;
    "operation_errorDomain" = NSCocoaErrorDomain;
    "operation_errorWorker" = IDEInstalliPhoneLauncher;
    "operation_name" = IDEiPhoneRunOperationWorkerGroup;
    "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.iphoneos";
    "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_runnable_type" = 2;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphoneos16.0";
    "sdk_osVersion" = "16.0";
    "sdk_variant" = iphoneos;
}
--
System Information
macOS Version 12.6 (Build 21G115)
Xcode 14.0.1 (21336) (Build 14A400)
Timestamp: 2022-09-29T08:40:53-07:00

内容的提问来源于stack exchange,提问作者Brett Law

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.27 15:52:35