From 3fbd210b2a74f299083306c309fedbe862ecf458 Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Tue, 20 Oct 2015 00:13:21 -0700 Subject: Make iostool arguments closer to phonegap ios-deploy. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Tor Arne Vestbø --- src/plugins/ios/iostoolhandler.cpp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'src/plugins/ios/iostoolhandler.cpp') 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); } -- cgit v1.2.1