You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Kenichi Naito (JIRA)" <ji...@apache.org> on 2018/02/06 01:30:00 UTC

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

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

Kenichi Naito commented on CB-12582:
------------------------------------

```
---
 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: 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-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org