You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "jcesarmobile (JIRA)" <ji...@apache.org> on 2017/07/21 16:22: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=16096440#comment-16096440 ] 

jcesarmobile commented on CB-12582:
-----------------------------------

I'm facing a similar issue that I was going to report (not similar to the title, but to the comments)

The problem is not that CocoaPods isn't persisted, it's that the libPod-projectname.a is not added to Linked Frameworks and Libraries if you add a plugin that uses CocoaPods before adding the platform.

Steps to reproduce:
# cordova create testPods
# cd testPods
# cordova plugin add https://github.com/phonegap/phonegap-plugin-push/
# cordova platform add ios
# open platforms/ios/HelloCordova.xcworkspace
# check Linked Frameworks and Libraries section

it won't have the libPods-HelloCordova.a

Also happen if the plugin is on the config.xml and you add the platform.

Workaround if you are adding the plugins manually, add them after adding the platform
Workaround if you added it before on from config.xml, go to platforms/ios/ and run pod install again.




> 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
>              Labels: backlog, ios-next
>             Fix For: cordova-ios@4.4.1
>
>
> 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
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org