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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user