You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ja...@apache.org on 2019/04/13 17:36:21 UTC

[cordova-ios] 05/06: log simulator start command

This is an automated email from the ASF dual-hosted git repository.

janpio pushed a commit to branch janpio-594_deployment
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git

commit 82662378896f1cfd1c17286e7b1672c8c3694353
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Sat Apr 13 19:35:44 2019 +0200

    log simulator start command
---
 bin/templates/scripts/cordova/lib/run.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/bin/templates/scripts/cordova/lib/run.js b/bin/templates/scripts/cordova/lib/run.js
index 950176a..1bc8c16 100644
--- a/bin/templates/scripts/cordova/lib/run.js
+++ b/bin/templates/scripts/cordova/lib/run.js
@@ -202,9 +202,13 @@ function startSim (appPath, target) {
     return iossimLaunch(appPath, 'com.apple.CoreSimulator.SimDeviceType.' + target, logPath, '--exit');
 }
 
-function iossimLaunch (app_path, devicetypeid, log, exit) {
+function iossimLaunch (appPath, devicetypeid, log, exit) {
     var f = path.resolve(path.dirname(require.resolve('ios-sim')), 'bin', 'ios-sim');
-    var proc = cp.spawn(f, ['launch', app_path, '--devicetypeid', devicetypeid, '--log', log, exit]);
+    
+    var params = ['launch', appPath, '--devicetypeid', devicetypeid, '--log', log, exit];
+    console.log("$ " + f + params.join(' '));
+    var proc = cp.spawn(f, params);
+    
     proc.stdout.on('data', (data) => {
         console.log(data.toString());
     });


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org