[jira] [Comment Edited] (CB-12582) Plugin's Cocoapods don't persist if another plugin is added after it

2018-02-25 Thread Andrey Sharapov (JIRA)

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

Andrey Sharapov edited comment on CB-12582 at 2/26/18 7:49 AM:
---

I think i've get this bug too.
 I have automated build process on dedicated server for my projects.
 I have no plugins/ and platforms/ directories at start of build, just only 
config.xml and package.json with versions of plugins and platforms (engines).

So, i use next versions:
 cordova 7.1.0
 cordova-ios 4.5.3
 phonegap-plugin-push 2.1.0

This is just what server does:
 1. cordova platform add ios
 2. cordova build ios --release --device

After run i see in log:
{code:java}
ld: library not found for -lGoogleToolboxForMac
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** ARCHIVE FAILED **
{code}
Then i can do again:

1. cordova platform rm ios
 2. cordova platform add ios
 3. cordova build ios --release --device

And it's really ok.
 But this is not a good solution for automated process.


was (Author: sharupoff):
I think i got this bug too.
I have automated build process on dedicated server for my projects.
I have no plugins/ and platforms/ directories at start of build, just only 
config.xml and package.json with versions of plugins and platforms (engines).

So, i use next versions:
cordova 7.1.0
cordova-ios 4.5.3
phonegap-plugin-push 2.1.0

This is just what does server:
1. cordova platform add ios
2. cordova build ios --release --device

After run i see in log:

{code}
ld: library not found for -lGoogleToolboxForMac
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** ARCHIVE FAILED **
{code}

Then i can do again:

1. cordova platform rm ios
2. cordova platform add ios
3. cordova build ios --release --device

And it's really ok.
But this is not a good solution for automated process.

> Plugin's Cocoapods don't persist if another plugin is added after it
> 
>
> Key: CB-12582
> URL: https://issues.apache.org/jira/browse/CB-12582
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-ios
>Affects Versions: cordova-ios@4.3.1, 6.5.0
>Reporter: Kyle Kirbatski
>Assignee: Shazron Abdullah
>Priority: Major
>  Labels: backlog
> Fix For: cordova-ios@4.5.5
>
> Attachments: 0001-exec-purgeProjectFileCache-when-pod-install.patch
>
>
> I was trying to use the urbanairship-cordova plugin but was unable to because 
> the frameworks added by Cocoapods (referenced from the plugin's xml) were not 
> being found for linking. After some investigation it appears that if a plugin 
> is added after a plugin that uses cocoapods then the changes made by 
> cocoapods are removed by cordova.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Resolved] (CB-12940) Use deployment-target for platform version in Podfile

2018-02-25 Thread Shazron Abdullah (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shazron Abdullah resolved CB-12940.
---
   Resolution: Fixed
Fix Version/s: (was: cordova-ios@4.5.1)
   cordova-ios@4.5.5

> Use deployment-target for platform version in Podfile
> -
>
> Key: CB-12940
> URL: https://issues.apache.org/jira/browse/CB-12940
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: cordova-ios
>Affects Versions: cordova-ios@4.4.0
>Reporter: Todd Miller
>Assignee: Shazron Abdullah
>Priority: Major
>  Labels: backlog
> Fix For: cordova-ios@4.5.5
>
>
> The current Podfile.js script is hardcoded to set the platform ios version to 
> 8.0. However, there are some pods that require 9.0 or they will fail to 
> install. The deployment-target preference should be honored and used when 
> generating the Podfile.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (CB-12002) Support LSApplicationQueriesSchemes

2018-02-25 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-12002:
-

dpogue commented on issue #269: CB-12002 - Support LSApplicationQueriesSchemes
URL: https://github.com/apache/cordova-ios/pull/269#issuecomment-368396891
 
 
   I believe (but have not confirmed) that it is possible to use 
`` to do this now, so this PR would not be strictly necessary


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Support LSApplicationQueriesSchemes
> ---
>
> Key: CB-12002
> URL: https://issues.apache.org/jira/browse/CB-12002
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-ios
>Reporter: Darryl Pogue
>Assignee: Darryl Pogue
>Priority: Major
>
> For apps to launch other apps via their custom URL schemes, they need to be 
> whitelisted in LSApplicationQueriesSchemes. We should be able to use the 
> (currently unused by iOS) {{}} tags in config.xml to configure 
> this.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (CB-12940) Use deployment-target for platform version in Podfile

2018-02-25 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-12940:
-

shazron closed pull request #335: CB-12940: [IOS] Use deployment-target from 
config.xml for platform version in Podfile
URL: https://github.com/apache/cordova-ios/pull/335
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/bin/templates/scripts/cordova/Api.js 
b/bin/templates/scripts/cordova/Api.js
index dd50d11f8..ae9d909ab 100644
--- a/bin/templates/scripts/cordova/Api.js
+++ b/bin/templates/scripts/cordova/Api.js
@@ -30,6 +30,7 @@ var events = require('cordova-common').events;
 var PluginManager = require('cordova-common').PluginManager;
 var Q = require('q');
 var util = require('util');
+var ConfigParser = require('cordova-common').ConfigParser;
 
 function setupEvents (externalEventEmitter) {
 if (externalEventEmitter) {
@@ -179,7 +180,7 @@ Api.prototype.getPlatformInfo = function () {
 result.root = this.root;
 result.name = this.platform;
 result.version = require('./version');
-result.projectConfig = this._config;
+result.projectConfig = new ConfigParser(this.locations.configXml);
 
 return result;
 };
@@ -247,6 +248,7 @@ Api.prototype.addPlugin = function (plugin, installOptions) 
{
 
 var project_dir = self.locations.root;
 var project_name = 
self.locations.xcodeCordovaProj.split('/').pop();
+var minDeploymentTarget = 
self.getPlatformInfo().projectConfig.getPreference('deployment-target', 'ios');
 
 var Podfile = require('./lib/Podfile').Podfile;
 var PodsJson = require('./lib/PodsJson').PodsJson;
@@ -254,7 +256,7 @@ Api.prototype.addPlugin = function (plugin, installOptions) 
{
 events.emit('verbose', 'Adding pods since the plugin contained 
(s) with type="podspec"');
 
 var podsjsonFile = new PodsJson(path.join(project_dir, 
PodsJson.FILENAME));
-var podfileFile = new Podfile(path.join(project_dir, 
Podfile.FILENAME), project_name);
+var podfileFile = new Podfile(path.join(project_dir, 
Podfile.FILENAME), project_name, minDeploymentTarget);
 
 frameworkPods.forEach(function (obj) {
 var podJson = {
diff --git a/bin/templates/scripts/cordova/lib/Podfile.js 
b/bin/templates/scripts/cordova/lib/Podfile.js
index 13e618028..ffa5be226 100644
--- a/bin/templates/scripts/cordova/lib/Podfile.js
+++ b/bin/templates/scripts/cordova/lib/Podfile.js
@@ -28,11 +28,12 @@ var CordovaError = require('cordova-common').CordovaError;
 
 Podfile.FILENAME = 'Podfile';
 
-function Podfile (podFilePath, projectName) {
+function Podfile (podFilePath, projectName, minDeploymentTarget) {
 this.podToken = '##INSERT_POD##';
 
 this.path = podFilePath;
 this.projectName = projectName;
+this.minDeploymentTarget = minDeploymentTarget || '9.0';
 this.contents = null;
 this.pods = null;
 this.__dirty = false;
@@ -97,12 +98,12 @@ Podfile.prototype.getTemplate = function () {
 var projectName = this.escapeSingleQuotes(this.projectName);
 return util.format(
 '# DO NOT MODIFY -- auto-generated by Apache Cordova\n' +
-'platform :ios, \'9.0\'\n' +
+'platform :ios, \'%s\'\n' +
 'target \'%s\' do\n' +
 '\tproject \'%s.xcodeproj\'\n' +
 '%s\n' +
 'end\n',
-projectName, projectName, this.podToken);
+this.minDeploymentTarget, projectName, projectName, this.podToken);
 };
 
 Podfile.prototype.addSpec = function (name, spec) {
diff --git a/tests/spec/unit/Api.spec.js b/tests/spec/unit/Api.spec.js
index 14e178ec4..eef7f7275 100644
--- a/tests/spec/unit/Api.spec.js
+++ b/tests/spec/unit/Api.spec.js
@@ -127,13 +127,13 @@ describe('Platform Api', function () {
 
 describe('.prototype', function () {
 var api;
-var projectRoot = '/some/path';
+var projectRoot = iosProjectFixture;
 beforeEach(function () {
-spyOn(fs, 'readdirSync').and.returnValue([projectRoot + 
'/cordova.xcodeproj']);
+api = new Api('ios', projectRoot);
+spyOn(fs, 
'readdirSync').and.returnValue([api.locations.xcodeProjDir]);
 spyOn(projectFile, 'parse').and.returnValue({
 getPackageName: function () { return 'ios.cordova.io'; }
 });
-api = new Api('ios', projectRoot);
 });
 
 // See the comment at the top of this file, in the list of requires,


 


This is an automated message from the Apache Git Servi

[jira] [Commented] (CB-12940) Use deployment-target for platform version in Podfile

2018-02-25 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on CB-12940:
--

Commit f8a817bc8e7c1925c0c4ec7b474ec2ce48f1643d in cordova-ios's branch 
refs/heads/master from [~shazron]
[ https://gitbox.apache.org/repos/asf?p=cordova-ios.git;h=f8a817b ]

CB-12940: [IOS] Use deployment-target from config.xml for platform version in 
Podfile (#335)



> Use deployment-target for platform version in Podfile
> -
>
> Key: CB-12940
> URL: https://issues.apache.org/jira/browse/CB-12940
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: cordova-ios
>Affects Versions: cordova-ios@4.4.0
>Reporter: Todd Miller
>Assignee: Shazron Abdullah
>Priority: Major
>  Labels: backlog
> Fix For: cordova-ios@4.5.1
>
>
> The current Podfile.js script is hardcoded to set the platform ios version to 
> 8.0. However, there are some pods that require 9.0 or they will fail to 
> install. The deployment-target preference should be honored and used when 
> generating the Podfile.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (CB-13824) (Swift 4) Plugin class not found

2018-02-25 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-13824:
-

shazron closed pull request #353: CB-13824: (ios) Swift 4 support
URL: https://github.com/apache/cordova-ios/pull/353
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/CordovaLib/Classes/Public/CDVViewController.m 
b/CordovaLib/Classes/Public/CDVViewController.m
index d467b496f..f34b3ddf5 100644
--- a/CordovaLib/Classes/Public/CDVViewController.m
+++ b/CordovaLib/Classes/Public/CDVViewController.m
@@ -662,6 +662,12 @@ - (id)getCommandInstance:(NSString*)pluginName
 id obj = [self.pluginObjects objectForKey:className];
 if (!obj) {
 obj = [[NSClassFromString(className)alloc] 
initWithWebViewEngine:_webViewEngine];
+if (!obj) {
+NSString* fullClassName = [NSString stringWithFormat:@"%@.%@",
+   
NSBundle.mainBundle.infoDictionary[@"CFBundleExecutable"],
+   className];
+obj = [[NSClassFromString(fullClassName)alloc] 
initWithWebViewEngine:_webViewEngine];
+}
 
 if (obj != nil) {
 [self registerPlugin:obj withClassName:className];


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


>  (Swift 4) Plugin class not found
> -
>
> Key: CB-13824
> URL: https://issues.apache.org/jira/browse/CB-13824
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-ios, cordova-osx
>Reporter: Alberto Lalama
>Assignee: Tobias Bocanegra
>Priority: Minor
> Fix For: 4.1.0
>
>
> After upgrading to Xcode 9.2 (Swift 4), some plugins were not found. Plugin 
> method execution fails with the following message: "CDVPlugin class X 
> (pluginName: Y) does not exist".
> Closer inspection reveals that NSClassFromString returns nil for plugins 
> implemented in Swift. Prefixing the class with the module name fixes the 
> issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (CB-13824) (Swift 4) Plugin class not found

2018-02-25 Thread ASF subversion and git services (JIRA)

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

ASF subversion and git services commented on CB-13824:
--

Commit bed6de726d872f7106efdfede9645d9852b2768f in cordova-ios's branch 
refs/heads/master from alberto lalama
[ https://gitbox.apache.org/repos/asf?p=cordova-ios.git;h=bed6de7 ]

CB-13824 - Xcode 9/Swift 4 support (#353)



>  (Swift 4) Plugin class not found
> -
>
> Key: CB-13824
> URL: https://issues.apache.org/jira/browse/CB-13824
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-ios, cordova-osx
>Reporter: Alberto Lalama
>Assignee: Tobias Bocanegra
>Priority: Minor
> Fix For: 4.1.0
>
>
> After upgrading to Xcode 9.2 (Swift 4), some plugins were not found. Plugin 
> method execution fails with the following message: "CDVPlugin class X 
> (pluginName: Y) does not exist".
> Closer inspection reveals that NSClassFromString returns nil for plugins 
> implemented in Swift. Prefixing the class with the module name fixes the 
> issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Resolved] (CB-12582) Plugin's Cocoapods don't persist if another plugin is added after it

2018-02-25 Thread Shazron Abdullah (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-12582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shazron Abdullah resolved CB-12582.
---
   Resolution: Fixed
Fix Version/s: (was: cordova-ios@4.5.1)
   cordova-ios@4.5.5

> Plugin's Cocoapods don't persist if another plugin is added after it
> 
>
> Key: CB-12582
> URL: https://issues.apache.org/jira/browse/CB-12582
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-ios
>Affects Versions: cordova-ios@4.3.1, 6.5.0
>Reporter: Kyle Kirbatski
>Assignee: Shazron Abdullah
>Priority: Major
>  Labels: backlog
> Fix For: cordova-ios@4.5.5
>
> Attachments: 0001-exec-purgeProjectFileCache-when-pod-install.patch
>
>
> I was trying to use the urbanairship-cordova plugin but was unable to because 
> the frameworks added by Cocoapods (referenced from the plugin's xml) were not 
> being found for linking. After some investigation it appears that if a plugin 
> is added after a plugin that uses cocoapods then the changes made by 
> cocoapods are removed by cordova.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (CB-12582) Plugin's Cocoapods don't persist if another plugin is added after it

2018-02-25 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-12582:
-

shazron closed pull request #354: CB-12582: exec purgeProjectFileCache when pod 
install
URL: https://github.com/apache/cordova-ios/pull/354
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/bin/templates/scripts/cordova/Api.js 
b/bin/templates/scripts/cordova/Api.js
index dd50d11f8..04da4a1bd 100644
--- a/bin/templates/scripts/cordova/Api.js
+++ b/bin/templates/scripts/cordova/Api.js
@@ -285,6 +285,7 @@ Api.prototype.addPlugin = function (plugin, installOptions) 
{
 if (podfileFile.isDirty()) {
 podfileFile.write();
 events.emit('verbose', 'Running `pod install` (to install 
plugins)');
+projectFile.purgeProjectFileCache(self.locations.root);
 
 return podfileFile.install(check_reqs.check_cocoapods);
 } else {


 


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Plugin's Cocoapods don't persist if another plugin is added after it
> 
>
> Key: CB-12582
> URL: https://issues.apache.org/jira/browse/CB-12582
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-ios
>Affects Versions: cordova-ios@4.3.1, 6.5.0
>Reporter: Kyle Kirbatski
>Assignee: Shazron Abdullah
>Priority: Major
>  Labels: backlog
> Fix For: cordova-ios@4.5.1
>
> Attachments: 0001-exec-purgeProjectFileCache-when-pod-install.patch
>
>
> I was trying to use the urbanairship-cordova plugin but was unable to because 
> the frameworks added by Cocoapods (referenced from the plugin's xml) were not 
> being found for linking. After some investigation it appears that if a plugin 
> is added after a plugin that uses cocoapods then the changes made by 
> cocoapods are removed by cordova.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Commented] (CB-12002) Support LSApplicationQueriesSchemes

2018-02-25 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-12002:
-

shazron commented on issue #269: CB-12002 - Support LSApplicationQueriesSchemes
URL: https://github.com/apache/cordova-ios/pull/269#issuecomment-368395160
 
 
   Reviewing PRs for new cordova-ios release. @dpogue @jcesarmobile -- not sure 
what the status of this is.


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Support LSApplicationQueriesSchemes
> ---
>
> Key: CB-12002
> URL: https://issues.apache.org/jira/browse/CB-12002
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-ios
>Reporter: Darryl Pogue
>Assignee: Darryl Pogue
>Priority: Major
>
> For apps to launch other apps via their custom URL schemes, they need to be 
> whitelisted in LSApplicationQueriesSchemes. We should be able to use the 
> (currently unused by iOS) {{}} tags in config.xml to configure 
> this.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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



[jira] [Closed] (CB-13617) Cordova platform add browser - Getting copy error while adding platform with cordova-browser@5.0.1

2018-02-25 Thread jcesarmobile (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-13617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

jcesarmobile closed CB-13617.
-
Resolution: Cannot Reproduce

I've tested with cordova CLI 7.1.0 and couldn't reproduce.
I was able to reproduce with CLI 8.0.0, but the problem there is their plugin 
doesn't support CLI 8.0.0.

So this was probably an error on the MFP template, not really related to 
Cordova. Closing

> Cordova platform add browser - Getting copy error while adding platform with 
> cordova-browser@5.0.1
> --
>
> Key: CB-13617
> URL: https://issues.apache.org/jira/browse/CB-13617
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: cordova-browser, cordova-cli
>Reporter: Prashant
>Assignee: Jesse MacFadyen
>Priority: Blocker
>
> I have created cordova app with mobilefirst 8 application using CLI with mfp 
> template. Followed below commands
> IBM mobilefirst version: 8.0.0.00-20171024-121931
> Steps:
> cordova create Hello com.example.helloworld HelloWorld --template 
> cordova-template-mfp
> cd Hello
> cordova platform add browser
> *While adding browser platform getting below copy errors:*
> cp: dest file no such file or directory: 
> D:\Projects\Mobilefirst\HelloCordova\Hello\platforms\browse
> r\platform_www\plugins\cordova-plugin-mfp\worklight\analytics
> cp: copyFileSync: could not write to dest file (code=ENOENT): 
> D:\Projects\Mobilefirst\HelloCordova\He
> llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\ibmmfpf.js
> cp: copyFileSync: could not write to dest file (code=ENOENT): 
> D:\Projects\Mobilefirst\HelloCordova\He
> llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\typings
> cp: copyFileSync: could not write to dest file (code=ENOENT): 
> D:\Projects\Mobilefirst\HelloCordova\He
> llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\node_modules\express
> cp: copyFileSync: could not write to dest file (code=ENOENT): 
> D:\Projects\Mobilefirst\HelloCordova\He
> llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\node_modules\request
> cp: copyFileSync: could not write to dest file (code=ENOENT): 
> D:\Projects\Mobilefirst\HelloCordova\He
> llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\node_modules\jssha
> cp: copyFileSync: could not write to dest file (code=ENOENT): 
> D:\Projects\Mobilefirst\HelloCordova\He
> llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\node_modules\promiz
> cp: copyFileSync: could not write to dest file (code=ENOENT): 
> D:\Projects\Mobilefirst\HelloCordova\He
> llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\node_modules\sjcl
> cp: copyFileSync: could not write to dest file (code=ENOENT): 
> D:\Projects\Mobilefirst\HelloCordova\He
> llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\proxy.js
> Its displaying platform added successfully to the app. I register app to MFP 
> as well.
> While running it to browser we are getting error.
> *cordova run browser*
> D:\Projects\Mobilefirst\HelloCordova\Hello>cordova run browser
> module.js:471
> throw err;
> ^
> Error: Cannot find module 
> 'D:\Projects\Mobilefirst\HelloCordova\Hello\platforms\browser\www\plugins\
> cordova-plugin-mfp\worklight\proxy.js'
> at Function.Module._resolveFilename (module.js:469:15)
> at Function.Module._load (module.js:417:25)
> at Module.runMain (module.js:604:10)
> at run (bootstrap_node.js:389:7)
> at startup (bootstrap_node.js:149:9)
> at bootstrap_node.js:504:3
> startPage = index.html
> Static file server running @ http://localhost:8000/index.html
> CTRL + C to shut down
> Error: exit code 1
> Please test with below versions on Windows:
> Cordova : 7.1.0
> npm: 5.5.1
> node : 6.11.0



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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