From de665a5fe5a35bb48e21a4b075203f839542a7d3 Mon Sep 17 00:00:00 2001 From: Josh Tynjala Date: Mon, 11 Nov 2024 08:57:47 -0800 Subject: [PATCH] IOSHelper: when -verbose is specified, print the name of the selected iOS simulator This can be useful for debugging when the way that we select a simulator needs to be tweaked. For instance, I recently fixed an issue where "Unavailable" simulators could be automatically selected, but I saw only a UUID instead of the device name in the output, so it was hard to figure out which simulator had been selected. --- src/lime/tools/IOSHelper.hx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lime/tools/IOSHelper.hx b/src/lime/tools/IOSHelper.hx index 253ddc52c6..a8321a082a 100644 --- a/src/lime/tools/IOSHelper.hx +++ b/src/lime/tools/IOSHelper.hx @@ -324,6 +324,12 @@ class IOSHelper var currentDeviceID = XCodeHelper.getSimulatorID(project); + if (Log.verbose) + { + var currentSimulatorName = XCodeHelper.getSimulatorName(project); + Log.info("Using iOS simulator: " + currentSimulatorName); + } + try { System.runProcess("", "open", ["-Ra", "iOS Simulator"], true, false);