You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shazron Abdullah (JIRA)" <ji...@apache.org> on 2015/10/29 01:58:27 UTC

[jira] [Commented] (CB-9609) Cordova run popts don't make it through to ios-deploy on real device

    [ https://issues.apache.org/jira/browse/CB-9609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14979599#comment-14979599 ] 

Shazron Abdullah commented on CB-9609:
--------------------------------------

lib/run.js needs to process its argv:
https://github.com/apache/cordova-ios/blob/5ef74123fda613483ea1692afe7aaa724f7166c1/bin/templates/scripts/cordova/lib/run.js#L43

The first and second items in argv are:
node, platforms/ios/cordova/run

The rest of the items are extra args. Join the extra args to the end of the args array:
https://github.com/apache/cordova-ios/blob/5ef74123fda613483ea1692afe7aaa724f7166c1/bin/templates/scripts/cordova/lib/run.js#L135-L138

> Cordova run popts don't make it through to ios-deploy on real device
> --------------------------------------------------------------------
>
>                 Key: CB-9609
>                 URL: https://issues.apache.org/jira/browse/CB-9609
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>    Affects Versions: 5.2.0, 5.1.1
>         Environment: Mac OSX 10.10
>            Reporter: Rob Aldred
>            Priority: Minor
>              Labels: cordova-ios-4.0.x, ios-deploy
>
> Using Cordova 5.1.1 platform options passed to the run command don't make it through to ios-deploy.
> This is particularly problematic when using run because it doesn't accept the --justlaunch argument to cleanly exit from lldb after deploying the app.
> Eg.
> `cordova run --device ios -- --justlaunch`
> The -- seems to get removed as printed in the log:
> {code}
> → cordova run --device ios -- --justlaunch
> Running command: /Users/robaldred/Repos/project/platforms/ios/cordova/run --device --justlaunch
> Building project  : /Users/robaldred/Repos/project/platforms/ios/Project.xcodeproj
> {code}
> This seems to only be a problem with using the --device flag to deploy to a real device



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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