ios: immediately skip running when the executable is missing

Change-Id: I9a867f2a62811e84fa758e9d27272b6583067afb
Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
Fawzi Mohamed
2014-03-11 11:15:37 +01:00
parent d419069b4d
commit 84cf3cf7a5

View File

@@ -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<const IosDevice>();