[
https://issues.apache.org/jira/browse/CB-12582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16353200#comment-16353200
]
Kenichi Naito edited comment on CB-12582 at 2/6/18 1:30 AM:
------------------------------------------------------------
```
---
bin/templates/scripts/cordova/Api.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/bin/templates/scripts/cordova/Api.js
b/bin/templates/scripts/cordova/Api.js
index dd50d11f..04da4a1b 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 {
--
2.14.2
```
was (Author: knaito):
```
---
bin/templates/scripts/cordova/Api.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/bin/templates/scripts/cordova/Api.js
b/bin/templates/scripts/cordova/Api.js
index dd50d11f..04da4a1b 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 {
--
2.14.2
```
> 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: [email protected], 6.5.0
> Reporter: Kyle Kirbatski
> Assignee: Shazron Abdullah
> Priority: Major
> Labels: backlog
> Fix For: [email protected]
>
> 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: [email protected]
For additional commands, e-mail: [email protected]