[
https://issues.apache.org/jira/browse/CB-4971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13801696#comment-13801696
]
Oleg commented on CB-4971:
--------------------------
I have two projects: one was created with cordova 3.0 and that one is failing:
it was failing when I used cordova 3.0 and continues to fail adding plugins
with cordova 3.1. Perhaps I made some changes either on Xcode level or on
Cordova level that causes this. Don't know.
Another project was created with 3.1, it is developed extensively and in a
nutshell does not differ from the above project. There adding the plugins works.
[~shazron]: running on failing project with --verbose:
$ cordova plugin add org.apache.cordova.battery-status --verbose
Calling plugman.fetch on plugin "org.apache.cordova.battery-status"
Fetching plugin from location "org.apache.cordova.battery-status"...
Fetch is reading plugin.xml from location
"/var/folders/tm/jbyfwqwx7j1d80_fyjyp5vnr0000gn/T/org.apache.cordova.battery-status/package/plugin.xml"...
Copying from location
"/var/folders/tm/jbyfwqwx7j1d80_fyjyp5vnr0000gn/T/org.apache.cordova.battery-status/package"
to location
"/Users/oleg/Documents/MYAPP/plugins/org.apache.cordova.battery-status"
Calling plugman.install on plugin
"/Users/oleg/Documents/MYAPP/plugins/org.apache.cordova.battery-status" for
platform "android" with options
"{"www_dir":"/Users/oleg/Documents/MYAPP/platforms/android/.staging/www","cli_variables":{}}"
Starting installation of "org.apache.cordova.battery-status"...
Installing plugin org.apache.cordova.battery-status...
Beginning processing of action stack for android project...
Parsing android project files...
Action stack processing complete.
Preparing android project...
Processing configuration changes for plugins.
Iterating over installed plugins: [ 'org.apache.cordova.core.contacts',
'org.apache.cordova.core.device',
'org.apache.cordova.core.vibration',
'org.apache.cordova.core.dialogs',
'com.phonegap.plugins.sqlite',
'org.apache.cordova.console',
'org.apache.cordova.network-information',
'org.apache.cordova.battery-status' ]
Writing out cordova_plugins.js...
Calling plugman.install on plugin
"/Users/oleg/Documents/MYAPP/plugins/org.apache.cordova.battery-status" for
platform "ios" with options
"{"www_dir":"/Users/oleg/Documents/MYAPP/platforms/ios/.staging/www","cli_variables":{}}"
Starting installation of "org.apache.cordova.battery-status"...
Installing plugin org.apache.cordova.battery-status...
Beginning processing of action stack for ios project...
Parsing ios project files...
Parsing iOS project files...
Action stack processing complete.
Writing out iOS pbxproj file...
Preparing ios project...
Processing configuration changes for plugins.
Iterating over installed plugins: [ 'org.apache.cordova.core.contacts',
'org.apache.cordova.core.device',
'org.apache.cordova.core.vibration',
'org.apache.cordova.core.dialogs',
'com.phonegap.plugins.sqlite',
'org.apache.cordova.console',
'org.apache.cordova.network-information',
'org.apache.cordova.battery-status' ]
Writing out cordova_plugins.js...
[~anis]: Please provide more precise steps to "blow up" HOME/.cordova. I.e. do
you mean just to delete that file? How to recreate/put it back afterwards?
Which commands to run, etc. Thanks.
> Installation of plugins does not work for iOS
> ---------------------------------------------
>
> Key: CB-4971
> URL: https://issues.apache.org/jira/browse/CB-4971
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Contacts, Plugin Device, Plugin Dialogs
> Affects Versions: 3.0.0, 3.1.0
> Environment: iOS
> Reporter: Oleg
> Priority: Critical
> Labels: ios, plugin
> Fix For: Master, 3.0.0, 3.2.0
>
> Original Estimate: 72h
> Remaining Estimate: 72h
>
> Installation of iOS plugins does not work for iOS.
> Update: does not work in 3.1 cordova either.
> When installing the plugin via "cordova plugin add", the plugins fail to
> install correctly to the iOS platform:
> - source code (.js, .m, .h and .bundle) files are not copied over
> - proper frameworks are not being added to the project
> - config.xml file is not updated with plugin information
> Tried it on Device, Contacts and Dialogs and some other plugins.
> Update: tried on network-information plugin with cordova 3.1
> the workaround is to perform the above steps manually. but it is not
> documented anywhere.
> Note: it worked for me during one test, when the project was fresh. However
> after making a few minor changes and running "cordova prepare" or "cordova
> build" a few times, it stops working for iOS - i.e. you cannot add plugins
> without issues above. Android works fine.
--
This message was sent by Atlassian JIRA
(v6.1#6144)