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.
This commit is contained in:
Josh Tynjala
2024-11-11 08:57:47 -08:00
parent 35d23c6ced
commit de665a5fe5

View File

@@ -324,6 +324,12 @@ class IOSHelper
var currentDeviceID = XCodeHelper.getSimulatorID(project); var currentDeviceID = XCodeHelper.getSimulatorID(project);
if (Log.verbose)
{
var currentSimulatorName = XCodeHelper.getSimulatorName(project);
Log.info("Using iOS simulator: " + currentSimulatorName);
}
try try
{ {
System.runProcess("", "open", ["-Ra", "iOS Simulator"], true, false); System.runProcess("", "open", ["-Ra", "iOS Simulator"], true, false);