From 16c3fce1ad5a3430e00b1f81039d748f20086986 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pa=CC=84vels=20Nadtoc=CC=8Cajevs?= <7645683+bruvzg@users.noreply.github.com> Date: Fri, 17 Oct 2025 09:47:48 +0300 Subject: [PATCH] [macOS] Prevent error spam when iOS device is paired but sleeping. --- editor/export/editor_export_platform_apple_embedded.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/export/editor_export_platform_apple_embedded.cpp b/editor/export/editor_export_platform_apple_embedded.cpp index ec4480082f..f0df3912b9 100644 --- a/editor/export/editor_export_platform_apple_embedded.cpp +++ b/editor/export/editor_export_platform_apple_embedded.cpp @@ -2414,7 +2414,7 @@ void EditorExportPlatformAppleEmbedded::_check_for_changes_poll_thread(void *ud) const Dictionary &device_info = devices[i]; const Dictionary &conn_props = device_info["connectionProperties"]; const Dictionary &dev_props = device_info["deviceProperties"]; - if (conn_props["pairingState"] == "paired" && dev_props["developerModeStatus"] == "enabled") { + if (dev_props.has("developerModeStatus") && conn_props.has("pairingState") && conn_props.has("transportType") && conn_props["pairingState"] == "paired" && dev_props["developerModeStatus"] == "enabled") { Device nd; nd.id = device_info["identifier"]; nd.name = dev_props["name"].operator String() + " (devicectl, " + ((conn_props["transportType"] == "localNetwork") ? "network" : "wired") + ")";