summaryrefslogtreecommitdiff
path: root/src/plugins/ios/iostoolhandler.cpp
diff options
context:
space:
mode:
authorJake Petroules <jake.petroules@theqtcompany.com>2015-10-20 00:13:21 -0700
committerJake Petroules <jake.petroules@theqtcompany.com>2015-10-20 15:41:39 +0000
commit3fbd210b2a74f299083306c309fedbe862ecf458 (patch)
treeedd27721fb47e0b5137efaf9d959611db7d7e98d /src/plugins/ios/iostoolhandler.cpp
parent525c33f9991766342b41a0518b534836dc60ed69 (diff)
downloadqt-creator-3fbd210b2a74f299083306c309fedbe862ecf458.tar.gz
Make iostool arguments closer to phonegap ios-deploy.
phonegap's ios-deploy tool is probably the most widely known command line tool for deploying and debugging iOS applications. Make several arguments identical to theirs with the eventual goal of making iostool and ios-deploy command lines interchangeable. This is a libexec (private) tool only used internally by Qt Creator, so the changes should not impact anyone. Change-Id: I51f25f9c466570ca65b415d4ea94c78285cff1c2 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'src/plugins/ios/iostoolhandler.cpp')
-rw-r--r--src/plugins/ios/iostoolhandler.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/src/plugins/ios/iostoolhandler.cpp b/src/plugins/ios/iostoolhandler.cpp
index 7d3fe5c7db..d4e4fd63df 100644
--- a/src/plugins/ios/iostoolhandler.cpp
+++ b/src/plugins/ios/iostoolhandler.cpp
@@ -591,9 +591,9 @@ void IosDeviceToolHandlerPrivate::requestTransferApp(const QString &bundlePath,
this->bundlePath = bundlePath;
this->deviceId = deviceId;
QStringList args;
- args << QLatin1String("-device-id") << deviceId << QLatin1String("-bundle")
- << bundlePath << QLatin1String("-timeout") << QString::number(timeout)
- << QLatin1String("-deploy");
+ args << QLatin1String("--id") << deviceId << QLatin1String("--bundle")
+ << bundlePath << QLatin1String("--timeout") << QString::number(timeout)
+ << QLatin1String("--install");
start(IosToolHandler::iosDeviceToolPath(), args);
}
@@ -606,18 +606,17 @@ void IosDeviceToolHandlerPrivate::requestRunApp(const QString &bundlePath,
this->deviceId = deviceId;
this->runKind = runType;
QStringList args;
- args << QLatin1String("-device-id") << deviceId << QLatin1String("-bundle")
- << bundlePath << QLatin1String("-timeout") << QString::number(timeout);
- //args << QLatin1String("--deploy"); // to remove when the separate deploy step is functional
+ args << QLatin1String("--id") << deviceId << QLatin1String("--bundle")
+ << bundlePath << QLatin1String("--timeout") << QString::number(timeout);
switch (runType) {
case IosToolHandler::NormalRun:
- args << QLatin1String("-run");
+ args << QLatin1String("--run");
break;
case IosToolHandler::DebugRun:
- args << QLatin1String("-debug");
+ args << QLatin1String("--debug");
break;
}
- args << QLatin1String("-extra-args") << extraArgs;
+ args << QLatin1String("--args") << extraArgs;
op = OpAppRun;
start(IosToolHandler::iosDeviceToolPath(), args);
}
@@ -626,8 +625,8 @@ void IosDeviceToolHandlerPrivate::requestDeviceInfo(const QString &deviceId, int
{
this->deviceId = deviceId;
QStringList args;
- args << QLatin1String("-device-id") << deviceId << QLatin1String("-device-info")
- << QLatin1String("-timeout") << QString::number(timeout);
+ args << QLatin1String("--id") << deviceId << QLatin1String("--device-info")
+ << QLatin1String("--timeout") << QString::number(timeout);
op = OpDeviceInfo;
start(IosToolHandler::iosDeviceToolPath(), args);
}