Commit 70e98213 authored by Fawzi Mohamed's avatar Fawzi Mohamed
Browse files

ios: better message for deploy failures

Change-Id: I0e145b07d034277e2afa74f885a55a2722e2c180
Reviewed-by: default avatarEike Ziller <>
Reviewed-by: default avatarTopi Reiniö <>
parent 01e7e6c6
......@@ -50,7 +50,7 @@ IosRunner::IosRunner(QObject *parent, IosRunConfiguration *runConfig, bool debug
: QObject(parent), m_toolHandler(0), m_bundleDir(runConfig->bundleDir().toString()),
m_debuggingMode(debuggingMode), m_cleanExit(false), m_didWarn(false)
m_debuggingMode(debuggingMode), m_cleanExit(false)
......@@ -157,9 +157,6 @@ void IosRunner::handleAppOutput(IosToolHandler *handler, const QString &output)
void IosRunner::warnAboutRunFail()
if (m_didWarn)
m_didWarn = true;
QMessageBox mBox;
mBox.setText(tr("Running on iOS device failed."));
mBox.setInformativeText(tr("The certificates in Xcode or the device might be outdated. Check the certificates in the organizer window of Xcode, and try again."));
......@@ -169,11 +166,24 @@ void IosRunner::warnAboutRunFail()
void IosRunner::warnAboutDeployFail()
QMessageBox mBox;
mBox.setText(tr("Deploying to iOS device failed."));
mBox.setInformativeText(tr("This might be due to an incorrect Info.plist or outdated certificates in Xcode or device (see organizer window of Xcode)."));
void IosRunner::handleErrorMsg(IosToolHandler *handler, const QString &msg)
if (msg.contains(QLatin1String("AMDeviceStartService returned -402653150")))
QTimer::singleShot(0, this, SLOT(warnAboutRunFail()));
else if (msg.contains(QLatin1String("AMDeviceInstallApplication returned -402653103")))
QTimer::singleShot(0, this, SLOT(warnAboutDeployFail()));
emit errorMsg(msg);
......@@ -71,6 +71,7 @@ signals:
void finished(bool cleanExit);
private slots:
void warnAboutRunFail();
void warnAboutDeployFail();
void handleDidStartApp(Ios::IosToolHandler *handler, const QString &bundlePath,
const QString &deviceId, Ios::IosToolHandler::OpStatus status);
void handleGotGdbserverSocket(Ios::IosToolHandler *handler, const QString &bundlePath,
......@@ -88,7 +89,6 @@ private:
ProjectExplorer::IDevice::ConstPtr m_device;
bool m_debuggingMode;
bool m_cleanExit;
bool m_didWarn;
} // namespace Internal
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment