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

Shazron Abdullah edited comment on CB-9757 at 10/15/15 10:45 PM:
-----------------------------------------------------------------

What we can do is, allow users to install it in the platform, and our scripts 
try to "detect" this.
{code}
cordova create foo
cd foo
cordova platform add ios
cd platforms/ios/cordova && npm install ios-deploy
{code}

Then in platforms/ios/cordova/lib.run.js -- try to detect whether ios-deploy is 
available locally, and use that, or else use the global:
{code}
var ios_deploy = require('ios-deploy');
if (!ios_deploy) {
    // use the locally installed ios-deploy as a module
} else {
    // use the global ios-deploy through shell exec
}
{code}


was (Author: shazron):
What we can do is, allow users to install it in the platform, and our scripts 
try to "detect" this.
{code}
cordova create foo
cd foo
cordova platform add ios
cd platforms/ios/cordova && npm install ios-deploy
{code}

Then in platforms/ios/cordova/lib.run.js -- try to detect whether ios-deploy is 
available locally, and use that, or else use the global.

> use locally installed ios-deploy, not global
> --------------------------------------------
>
>                 Key: CB-9757
>                 URL: https://issues.apache.org/jira/browse/CB-9757
>             Project: Apache Cordova
>          Issue Type: Bug
>            Reporter: Shazron Abdullah
>              Labels: cordova-ios-4.0.x
>
> See: https://github.com/phonegap/ios-deploy/issues/149
> We've already done this for ios-sim in cordova-ios 4.0, so we could do it for 
> ios-deploy as well



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to