IOSHelper: comment about how the Platform == 'iOS' filter used by xcrun devicectl includes iPadOS, so there's no need to check for that one separately

This commit is contained in:
Josh Tynjala
2025-03-10 14:57:58 -07:00
parent 70e55b1fa5
commit 5488eee50c

View File

@@ -367,6 +367,7 @@ class IOSHelper
// devices, so we'll prefer those, if available.
var deviceUUID:String = null;
// prefer an iOS device with State == 'connected'
// Note: Platform == 'iOS' includes iPadOS
var listDevicesOutput = System.runProcess("", "xcrun", ["devicectl", "list", "devices", "--hide-default-columns", "--columns", "Identifier", "--filter", "Platform == 'iOS' AND State == 'connected'"]);
var ready = false;
for (line in listDevicesOutput.split("\n")) {