diff options
author | Jake Petroules <[email protected]> | 2015-10-20 00:13:21 -0700 |
---|---|---|
committer | Jake Petroules <[email protected]> | 2015-10-20 15:41:39 +0000 |
commit | 3fbd210b2a74f299083306c309fedbe862ecf458 (patch) | |
tree | edd27721fb47e0b5137efaf9d959611db7d7e98d /src/plugins/ios/iostoolhandler.cpp | |
parent | 525c33f9991766342b41a0518b534836dc60ed69 (diff) |
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 <[email protected]>
Reviewed-by: Tor Arne Vestbø <[email protected]>
Diffstat (limited to 'src/plugins/ios/iostoolhandler.cpp')
-rw-r--r-- | src/plugins/ios/iostoolhandler.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/plugins/ios/iostoolhandler.cpp b/src/plugins/ios/iostoolhandler.cpp index 7d3fe5c7dba..d4e4fd63dfa 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); } |