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/16 15:22:16 UTC

[cordova-ios] branch janpio-594_deployment updated: iterate

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


The following commit(s) were added to refs/heads/janpio-594_deployment by this push:
     new 085695b  iterate
085695b is described below

commit 085695b73bc41e4f7faa1de0237bc7f6b1642a6e
Author: Jan Piotrowski <pi...@gmail.com>
AuthorDate: Tue Apr 16 17:21:58 2019 +0200

    iterate
---
 bin/templates/scripts/cordova/lib/run.js | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/bin/templates/scripts/cordova/lib/run.js b/bin/templates/scripts/cordova/lib/run.js
index e0da41e..d59d734 100644
--- a/bin/templates/scripts/cordova/lib/run.js
+++ b/bin/templates/scripts/cordova/lib/run.js
@@ -19,7 +19,6 @@
 
 var Q = require('q');
 var path = require('path');
-var cp = require('child_process');
 var build = require('./build');
 var shell = require('shelljs');
 var superspawn = require('cordova-common').superspawn;
@@ -208,15 +207,15 @@ function iossimLaunch (appPath, devicetypeid, log, exit) {
 
     return superspawn.spawn(f, params, { cwd: projectPath, printCommand: true, stdio: 'pipe' })
         .progress(function (stdio) {
-            if (stdio.stderr) { 
-                console.error(stdio.stderr); 
+            if (stdio.stderr) {
+                console.error(stdio.stderr);
             }
             if (stdio.stdout) {
-                console.log('ios-sim log: ' + data.toString());
+                console.log('ios-sim log: ' + stdio.stdout);
             }
         })
-        .then(function(result){
-            console.log('Simulator successfully started via `ios-sim`.');
+        .then(function (result) {
+            console.log('Simulator successfully started via `ios-sim`.', result);
         });
 }
 


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