diff --git a/src/plugins/ios/simulatorcontrol.cpp b/src/plugins/ios/simulatorcontrol.cpp index f9167b2d407..19dbe3c1bb2 100644 --- a/src/plugins/ios/simulatorcontrol.cpp +++ b/src/plugins/ios/simulatorcontrol.cpp @@ -79,20 +79,22 @@ static bool checkForTimeout(const chrono::high_resolution_clock::time_point &sta return timedOut; } -static bool runCommand(const CommandLine &command, QString *output) +static bool runCommand(const CommandLine &command, QString *stdOutput, QString *allOutput = nullptr) { SynchronousProcess p; p.setTimeoutS(-1); SynchronousProcessResponse resp = p.runBlocking(command); - if (output) - *output = resp.stdOut(); + if (stdOutput) + *stdOutput = resp.stdOut(); + if (allOutput) + *allOutput = resp.allOutput(); return resp.result == SynchronousProcessResponse::Finished; } -static bool runSimCtlCommand(QStringList args, QString *output) +static bool runSimCtlCommand(QStringList args, QString *output, QString *allOutput = nullptr) { args.prepend("simctl"); - return runCommand({"xcrun", args}, output); + return runCommand({"xcrun", args}, output, allOutput); } static bool launchSimulator(const QString &simUdid) { @@ -484,6 +486,7 @@ void SimulatorControlPrivate::installApp(QFutureInterface