iOS: Fix run without deploy on iOS simulator

Task-number: QTCREATORBUG-18107
Change-Id: Ie847cdab672ff2df7af0c2fee742901de0783861
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Vikas Pachdha
2017-04-28 08:27:10 +02:00
parent f2e296f7c7
commit a4a78ae8b1
3 changed files with 43 additions and 7 deletions

View File

@@ -848,13 +848,12 @@ void IosSimulatorToolHandlerPrivate::requestRunApp(const QString &appBundlePath,
}
auto onSimulatorStart = [this, extraArgs] (const SimulatorControl::ResponseData &response) {
if (isResponseValid(response))
if (!isResponseValid(response))
return;
if (response.success) {
launchAppOnSimulator(extraArgs);
} else {
errorMsg(IosToolHandler::tr("Application launch on Simulator failed. Simulator not running.")
.arg(bundlePath));
errorMsg(IosToolHandler::tr("Application launch on Simulator failed. Simulator not running."));
didStartApp(bundlePath, deviceId, Ios::IosToolHandler::Failure);
}
};