diff --git a/src/plugins/ios/iostoolhandler.cpp b/src/plugins/ios/iostoolhandler.cpp index 10a305482ad..bded2ce7926 100644 --- a/src/plugins/ios/iostoolhandler.cpp +++ b/src/plugins/ios/iostoolhandler.cpp @@ -35,7 +35,6 @@ #include #include "utils/runextensions.h" #include "utils/synchronousprocess.h" -#include "utils/temporaryfile.h" #include #include @@ -51,6 +50,7 @@ #include #include #include +#include #include #include @@ -81,8 +81,8 @@ class LogTailFiles : public QObject Q_OBJECT public: - void exec(QFutureInterface &fi, std::shared_ptr stdoutFile, - std::shared_ptr stderrFile) + void exec(QFutureInterface &fi, std::shared_ptr stdoutFile, + std::shared_ptr stderrFile) { if (fi.isCanceled()) return; @@ -96,7 +96,7 @@ public: watcher.setFuture(fi.future()); // Process to print the console output while app is running. - auto logProcess = [this, fi](QProcess *tailProcess, std::shared_ptr file) { + auto logProcess = [this, fi](QProcess *tailProcess, std::shared_ptr file) { QObject::connect(tailProcess, &QProcess::readyReadStandardOutput, [=]() { if (!fi.isCanceled()) emit logMessage(QString::fromLocal8Bit(tailProcess->readAll())); @@ -910,13 +910,13 @@ void IosSimulatorToolHandlerPrivate::launchAppOnSimulator(const QStringList &ext const QString bundleId = SimulatorControl::bundleIdentifier(appBundle); const bool debugRun = runKind == IosToolHandler::DebugRun; bool captureConsole = IosConfigurations::xcodeVersion() >= QVersionNumber(8); - std::shared_ptr stdoutFile; - std::shared_ptr stderrFile; + std::shared_ptr stdoutFile; + std::shared_ptr stderrFile; if (captureConsole) { const QString fileTemplate = CONSOLE_PATH_TEMPLATE.arg(deviceId).arg(bundleId); - stdoutFile.reset(new Utils::TemporaryFile(fileTemplate + ".stdout")); - stderrFile.reset(new Utils::TemporaryFile(fileTemplate + ".stderr")); + stdoutFile.reset(new QTemporaryFile(fileTemplate + ".stdout")); + stderrFile.reset(new QTemporaryFile(fileTemplate + ".stderr")); captureConsole = stdoutFile->open() && stderrFile->open(); if (!captureConsole)