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/16 00:46:05 UTC

[jira] [Comment Edited] (CB-9757) use locally installed ios-deploy, not global

    [ 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 global ios-deploy through shell exec
} else {
    // use the locally installed ios-deploy as a module
}
{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:
{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}

> 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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org