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

Frederico Costa Galvão commented on CB-9976:
--------------------------------------------

This is not an issue with npm < 3, nor is it only on iOS.
I was able to reproduce this on 2 different environments:

* Linux Xubuntu 13.10 x86_64, \{node -v === 0.12.1\} \{npm -v === 3.3.12\}
* Windows 10 x86_64, \{node -v === 4.2.2\} \{npm -v === 2.14.7\}

Steps to reproduce on both environments:
(Step #2 is to fix another issue with 5.3.3, it has nothing to do with the 
issue at hand)

# npm rm -g cordova && npm cache clean cordova && npm i -g [email protected]
# mkdir -p .../cordova/node_modules/cordova-lib/node_modules && ln -s 
.../cordova/node_modules/cordova-app-hello-world 
.../cordova/node_modules/cordova-lib/node_modules/cordova-app-hello-world
# cordova create hello533 && cd hello533
# cordova plugin add cordova-plugin-device && cordova plugin add --save 
cordova-plugin-camera
# cordova platform add android && cordova platform add --save ios
# cordova prepare
# Make sure plugin code and metadata are *PRESENT* on all of these places
#* ./platforms/\{android/assets,ios}/www/plugins
# Make sure plugin code and metadata are *ABSENT* on all of these files 
(because they didn't exist until now)
#* ./platforms/\{android,ios\}/platform_www/\{plugins,cordova_plugins.js\}
# npm rm -g cordova && npm cache clean cordova && npm i -g [email protected]
# cordova prepare
# *[NOT EXPECTED]* Confirm that plugin code and metadata are *ABSENT* on all of 
these places
#* ./platforms/\{android/assets,ios\}/www/\{plugins,cordova_plugins.js\}
# *[NOT EXPECTED]* Confirm that plugin description and metadata are *ABSENT* on 
all of these new files
#* ./platforms/android/android.json
#* ./platforms/ios/ios.json


These steps confirm (for me) that this issue has nothing to do with neither of 
these:
- android or ios
- windows or unix
- node 0.x or 4.x
- npm 2.x or 3.x
- plugins added with --save or without --save
- platforms added with --save or without --save
- one (device) or another (camera) plugin

Projects created by [email protected] have their plugin files and metadata placed 
here instead: 
./platforms/\{android,ios\}/platform_www/\{plugins,cordova_plugins.js\}. 
However, that content doesn't get to be loaded in the application from there, 
so it's no use.

There is also some difference on the ./plugins/\{android,ios\}.json files 
between projects upgraded to 5.4.0 and projects created on 5.4.0, but only on 
the *config_munge* section.

> Updating to cordovaLib 5.4.0 breaks ios installed plugins
> ---------------------------------------------------------
>
>                 Key: CB-9976
>                 URL: https://issues.apache.org/jira/browse/CB-9976
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib, dovaLib
>            Reporter: Steve Gill
>
> cordova_plugins.js doesn't get created for ios when updating from an older 
> cli to a newer cli. 
> Have to remove and add plugins manually to get plugins working again.
> Reproduce (need to use npm < 3):
> npm install -g [email protected]
> cordova create helloWorld
> cd helloWorld
> cordova platform add ios
> cordova plugin add cordova-plugin-device
> cordova prepare (helloWorld/platforms/ios/www/cordova_plugins.js is created)
> npm install -g [email protected]
> cordova prepare (helloWorld/platforms/ios/www/cordova_plugins.js doesn't 
> exist)
> `helloWorld/platforms/ios/ios.json` is also incorrect in the updated version. 



--
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