Skip to content

Commit

Permalink
IOSHelper: when -verbose is specified, print the name of the selected…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
joshtynjala committed Nov 11, 2024
1 parent 35d23c6 commit de665a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/lime/tools/IOSHelper.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit de665a5

Please sign in to comment.