From 84cf3cf7a5ae6f8efbe9abd868aa408c901c1ff6 Mon Sep 17 00:00:00 2001 From: Fawzi Mohamed Date: Tue, 11 Mar 2014 11:15:37 +0100 Subject: [PATCH] ios: immediately skip running when the executable is missing Change-Id: I9a867f2a62811e84fa758e9d27272b6583067afb Reviewed-by: Fawzi Mohamed --- src/plugins/ios/iosrunner.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/plugins/ios/iosrunner.cpp b/src/plugins/ios/iosrunner.cpp index 11dec23ac8e..ccc76bca4a4 100644 --- a/src/plugins/ios/iosrunner.cpp +++ b/src/plugins/ios/iosrunner.cpp @@ -114,6 +114,13 @@ void IosRunner::start() } m_cleanExit = false; m_qmlPort = 0; + if (!QFileInfo::exists(m_bundleDir)) { + TaskHub::addTask(Task::Warning, + tr("Could not find %1.").arg(m_bundleDir), + ProjectExplorer::Constants::TASK_CATEGORY_DEPLOYMENT); + emit finished(m_cleanExit); + return; + } IosToolHandler::DeviceType devType = IosToolHandler::IosDeviceType; if (m_device->type() == Ios::Constants::IOS_DEVICE_TYPE) { IosDevice::ConstPtr iosDevice = m_device.dynamicCast();