[
https://issues.apache.org/jira/browse/CB-10775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15184119#comment-15184119
]
Shazron Abdullah commented on CB-10775:
---------------------------------------
I was the one that suggested cleaning out the [project_path/project_name]
directory and reinstalling everything (because of side effects, since the
template has significantly changed in 4.x) -- of course in this case existing
plugins are wiped out, and should be reinstalled by "cordova prepare" according
to plugin.xml, if "--save"d.
In any case, the fix would be to wipe out everything still, but keep the
[project_path/project_name]/Plugins folder intact. Removing the Plugins folder
in this case (this issue) was going to be problematic since the project
structure, at the [project_path/plugins] (at the root) would contain the
plugins which are left orphaned if they were not "--save"d in config.xml, and
also the .xcodeproj has references to those plugins as well, which are orphaned
as well.
A future recommendation would be that all plugins should use the "--save"
parameter to avoid situations like this.
That being said, we shouldn't be destructive just in case the plugins were not
"--save"d.
The fix would be to:
1. Copy [project_path/project_name/Plugins] to a tmp location
2. rm -rf [project_path/project_name]
3. Copy the Plugins folder from tmp in (1) to [project_path/project_name]
> All plugins removed after update to 4.1.0 ios
> ---------------------------------------------
>
> Key: CB-10775
> URL: https://issues.apache.org/jira/browse/CB-10775
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 4.1.0
> Environment: OSX 10.10
> Reporter: Matthias Max
> Labels: cordova-ios-4.1.1, triaged
> Attachments: Bildschirmfoto 2016-03-03 um 23.45.02.png
>
>
> I have updated to Cordova 4.1.0 due to the problems 4.0.1 had.
> Now all my plugins are gone in the IONIC app.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]