[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=16603217#comment-16603217 ] Matthias commented on CB-12582: --- Hmm, interesting, didn't check the source. Still running into an issue with pods not found for linking with cordova-ios@4.5.5 Yeah, probably a different issue with cocoapod dependencies then. In my case a plugin actually installs a pod which itself has additional pods as dependencies which are not found for linking in the end. > 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.5 > > 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-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=16603199#comment-16603199 ] jcesarmobile commented on CB-12582: --- Not sure why it was reverted, but seems to still be there https://github.com/apache/cordova-ios/blob/master/bin/templates/scripts/cordova/Api.js#L310 > 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.5 > > 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-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=16603184#comment-16603184 ] Matthias commented on CB-12582: --- Since the change has been [reverted|https://github.com/apache/cordova-ios/commit/15246c9d627a633847a2e62dce14190ac443f390], can the issue be reopened? > 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.5 > > 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-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=16376406#comment-16376406 ] ASF GitHub Bot commented on CB-12582: - shazron closed pull request #354: CB-12582: exec purgeProjectFileCache when pod install URL: https://github.com/apache/cordova-ios/pull/354 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/bin/templates/scripts/cordova/Api.js b/bin/templates/scripts/cordova/Api.js index dd50d11f8..04da4a1bd 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 { This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > 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-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=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-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=16344540#comment-16344540 ] Kenichi Naito commented on CB-12582: I think my PR is for this issue. [https://github.com/apache/cordova-ios/pull/354#issuecomment-361147525] > 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 > > > 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-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=16260733#comment-16260733 ] Andrey Sharapov commented on CB-12582: -- I think i got this bug too. I have automated build process on dedicated server for my projects. I have no plugins/ and platforms/ directories at start of build, just only config.xml and package.json with versions of plugins and platforms (engines). So, i use next versions: cordova 7.1.0 cordova-ios 4.5.3 This is just what does server: 1. cordova platform add ios 2. cordova build ios --release --device After run i see in log: ``` ld: library not found for -lGoogleToolboxForMac clang: error: linker command failed with exit code 1 (use -v to see invocation) ** ARCHIVE FAILED ** ``` Then i can do again: 1. cordova platform rm ios 2. cordova platform add ios 3. cordova build ios --release --device And it's really ok. But this is not a good solution for automated process. > 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 > Fix For: cordova-ios@4.5.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-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=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-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15939346#comment-15939346 ] Kyle Kirbatski commented on CB-12582: - Fair enough. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Assignee: Shazron Abdullah > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15939345#comment-15939345 ] Shazron Abdullah commented on CB-12582: --- This is not what you said: https://issues.apache.org/jira/browse/CB-12582?focusedCommentId=15937380=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15937380 and I quote "It's whenever the plugin is installed by cordova to the platform before other plugins, but only seems to occur if the plugins are installed after adding the iOS platform." In any case I've already wasted too much time on this on your unclear bug description, so its to the back of the queue. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Assignee: Shazron Abdullah > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15939332#comment-15939332 ] Kyle Kirbatski commented on CB-12582: - Sorry, I must not of made it obvious. Add the platform after adding the plugins. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Assignee: Shazron Abdullah > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15939306#comment-15939306 ] Shazron Abdullah commented on CB-12582: --- Still no repro. I modified {{cordova}} with the changes you suggested in https://issues.apache.org/jira/browse/CB-12582?focusedCommentId=15934802=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15934802 Then (this is based on your information to Julio to do this and re-test): 1. cordova create test 2. cd test 3. ## Edit config.xml to remove all plugin tags, so no plugins are installed on platform add 4. cordova platform add https://github.com/apache/cordova-ios.git (includes the latest fix in CB-12571) 5. cordova plugin add urbanairship-cordova 6. cordova plugin add cordova-plugin-camera 7. cordova plugin add cordova-plugin-statusbar 8. cordova build After all those steps I see UA in the Podfile, and everything built fine also. I'll have to put this on the backburner for reconsideration in cordova-ios@4.4.1, since there is no repro for it. Unless there is a better repro (and/or verify our findings with the steps above, or improve on it), there is nothing we can do more here. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Assignee: Shazron Abdullah >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15938911#comment-15938911 ] Shazron Abdullah commented on CB-12582: --- What I meant was I will test it according to your code change due to fs.readdirsync. "The project will compile successfully if you place the urbanairship plugin last in the list of plugins." --> that's a good clue since I want ed to know if the plugin compiled properly at all, to rule that linker error out which I mentioned. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Assignee: Shazron Abdullah >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=1593#comment-1593 ] Kyle Kirbatski commented on CB-12582: - There isn't an issue with {{readdirsync}}, I'm just saying that's how Cordova determines the plugin installation order. The project will compile successfully if you place the urbanairship plugin last in the list of plugins. This isn't a fix, though. And I'm not even 100% certain it will compile successfully. It really depends on the ordering that cordova installs the plugins. If you watch the plugin install ordering and the urbanairship plugin is last to be installed, then the project will compile. It just so happens that if you update the config.xml and put the plugin last in the list it will be installed last, most of the time, I've had instances where it wasn't. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Assignee: Shazron Abdullah >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15938878#comment-15938878 ] Shazron Abdullah commented on CB-12582: --- I'll check out the {{fs.readdirsync}} issue soon for repro. When you say "The issue doesn't occur if you put the urban airship plugin last in the list." does that mean everything builds successfully? (note my linker error above). I'm trying to see what constitutes a successful fix here and whether the linker issue is something different. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15937436#comment-15937436 ] Kyle Kirbatski commented on CB-12582: - The issue doesn't occur if you put the urban airship plugin last in the list. Also, you can recreate the issue with any plugin by using the modified code I provided above. The plugins are _not_ installed by cordova in the order that you specify. The ordering is 100% dependent on the order returned by {readdirSync} since that's what cordova does to determine the plugins to install. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15937433#comment-15937433 ] Shazron Abdullah commented on CB-12582: --- Ok here are my results. {code} $ cordova create test1 Creating a new cordova project. $ cd test1 ## edit config.xml, remove all plugin tags ## edit the config.xml, add the plugin tags you provided, in order $ cordova platform add https://github.com/apache/cordova-ios.git git cloning: https://github.com/apache/cordova-ios.git Repository "https://github.com/apache/cordova-ios.git; checked out to git ref "master". Warning: using prerelease platform ios@4.4.0-dev. Use 'cordova platform add ios@latest' to add the latest published version instead. Adding ios project... Creating Cordova project for the iOS platform: Path: platforms/ios Package: io.cordova.hellocordova Name: HelloCordova iOS project created with cordova-ios@4.4.0-dev Discovered plugin "urbanairship-cordova" in config.xml. Adding it to the project Fetching plugin "urbanairship-cordova@~6.6.0" via npm Installing "urbanairship-cordova" for ios Discovered plugin "cordova-plugin-file" in config.xml. Adding it to the project Fetching plugin "cordova-plugin-file@^3.0.0" via npm Installing "cordova-plugin-file" for ios The Android Persistent storage location now defaults to "Internal". Please check this plugins README to see if you application needs any changes in its config.xml. If this is a new application no changes are required. If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add: "" to config.xml in order for the application to find previously stored files. Discovered plugin "cordova-plugin-file-transfer" in config.xml. Adding it to the project Fetching plugin "cordova-plugin-file-transfer@^1.2.1" via npm Installing "cordova-plugin-file-transfer" for ios Dependent plugin "cordova-plugin-file" already installed on ios. Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project Fetching plugin "cordova-plugin-whitelist@~1.2.2" via npm Installing "cordova-plugin-whitelist" for ios Discovered plugin "cordova-plugin-crosswalk-webview" in config.xml. Adding it to the project Fetching plugin "cordova-plugin-crosswalk-webview@~2.3.0" via npm Installing "cordova-plugin-crosswalk-webview" for ios After much discussion and analysis of the market, we have decided to discontinue support for Android 4.0 (ICS) in Crosswalk starting with version 20. So the minSdkVersion of Cordova project is configured to 16 by default. Discovered plugin "cordova-plugin-device" in config.xml. Adding it to the project Fetching plugin "cordova-plugin-device@~1.0.1" via npm Installing "cordova-plugin-device" for ios Discovered plugin "cordova-plugin-dialogs" in config.xml. Adding it to the project Fetching plugin "cordova-plugin-dialogs@~1.1.1" via npm Installing "cordova-plugin-dialogs" for ios Discovered plugin "cordova-plugin-zip" in config.xml. Adding it to the project Fetching plugin "cordova-plugin-zip@~3.0.0" via npm Installing "cordova-plugin-zip" for ios Dependent plugin "cordova-plugin-file" already installed on ios. Discovered plugin "cordova-plugin-inappbrowser" in config.xml. Adding it to the project Fetching plugin "cordova-plugin-inappbrowser@~1.3.0" via npm Installing "cordova-plugin-inappbrowser" for ios Discovered plugin "cordova-custom-config" in config.xml. Adding it to the project Fetching plugin "cordova-custom-config@~2.0.3" via npm Installing "cordova-custom-config" for ios cordova-custom-config: Installing plugin dependencies... Discovered plugin "cordova-plugin-statusbar" in config.xml. Adding it to the project Fetching plugin "cordova-plugin-statusbar@~2.1.3" via npm Installing "cordova-plugin-statusbar" for ios Discovered plugin "cordova-plugin-google-analytics" in config.xml. Adding it to the project Fetching plugin "cordova-plugin-google-analytics@~0.8.1" via npm Installing "cordova-plugin-google-analytics" for ios Discovered plugin "cordova-plugin-geolocation" in config.xml. Adding it to the project Fetching plugin "cordova-plugin-geolocation@~2.4.0" via npm Installing "cordova-plugin-geolocation" for ios Fetching plugin "cordova-plugin-compat" via npm Installing "cordova-plugin-compat" for ios {code} Now we have the right environment. I had to create a Push Notification profile with the right entitlement and set it manually in Xcode, before it could build. Now I did this: {code} $ cordova build [... trimmed ...] ld: warning: directory not found for option '-L/Users/shaz/Library/Developer/Xcode/DerivedData/HelloCordova-cqfgyiiqldisiscndvjjnhrdkpqz/Build/Intermediates/ArchiveIntermediates/HelloCordova/BuildProductsPath/Debug-iphoneos/UrbanAirship-iOS-SDK' ld: library not found for -lUrbanAirship-iOS-SDK clang: error: linker command failed with exit
[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=15937411#comment-15937411 ] Kyle Kirbatski commented on CB-12582: - So, does that mean you were or were not able to reproduce the issue? > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15937392#comment-15937392 ] Shazron Abdullah commented on CB-12582: --- Yup my tests will do this exactly: 1) create the project 2) edit the config.xml, remove all plugin tags 3) edit the config.xml, add the plugin tags you provided, in order (they will be installed in order) 4) add the ios platform from github (master code), this will install the platform first 5) the plugins will be installed from config.xml, in order > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15937380#comment-15937380 ] Kyle Kirbatski commented on CB-12582: - It's whenever the plugin is installed by cordova to the platform before other plugins, but only seems to occur if the plugins are installed after adding the iOS platform. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15937371#comment-15937371 ] Shazron Abdullah commented on CB-12582: --- Ok, all this potential bug you're saying is "if a plugin is added after a plugin that uses cocoapods then the changes made by cocoapods are removed by cordova." @jcesarmobile already demonstrated that it doesn't by adding it after. I'll test it with your config.xml. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15936658#comment-15936658 ] Kyle Kirbatski commented on CB-12582: - {code:xml} http://www.w3.org/ns/widgets; xmlns:cdv="http://cordova.apache.org/ns/1.0;> App Test. http://*/*"/> https://*/*"/> mailto:*"/> {code} No guarantees you'll be able to reproduce since like I said, we're dependent on the ordering of {{fs.readdirSync}}. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15935510#comment-15935510 ] Shazron Abdullah commented on CB-12582: --- If you already have an existing config.xml, just do a {{cordova plugin save}} to save it in. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15935509#comment-15935509 ] Shazron Abdullah commented on CB-12582: --- I don't think modifying code to replicate what you have is a good thing -- can we repro this in a standard way? Since you obviously can repro it, create a new project, add your plugins with the {{--save}} option, then attach your config.xml to this issue. Will test with cordova-ios@4.3.1 and the latest master code. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15934802#comment-15934802 ] Kyle Kirbatski commented on CB-12582: - It's unfortunately not that easy since Cordova will install the plugins in the order that `fs.readdirSync` returns. Modify the function `findPlugins` inside of cordova-lib/src/cordova/util.js to: function findPlugins(pluginPath) { var plugins = [], stats; if (exports.existsSync(pluginPath)) { plugins = fs.readdirSync(pluginPath).filter(function (fileName) { stats = fs.statSync(path.join(pluginPath, fileName)); return fileName != '.svn' && fileName != 'CVS' && stats.isDirectory(); }).sort(function (fileName) { if(fileName.indexOf('urbanairship') >= 0){ return -1; } else { return 1; } }); } return plugins; } This will ensure that the urban airship plugin will always be installed first. After making that change, re-run your test case. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15934671#comment-15934671 ] jcesarmobile commented on CB-12582: --- Can you provide more information? I created a new project, added ios platform and installed this plugins in this order cordova plugin add urbanairship-cordova cordova plugin add cordova-plugin-camera cordova plugin add cordova-plugin-statusbar and I still can see pod 'UrbanAirship-iOS-SDK', '~> 8.0.5' on the Podfile > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15932609#comment-15932609 ] Kyle Kirbatski commented on CB-12582: - @Shazron Abdullah, I thought so too, but after using the latest git rev cordova-ios the problem still persisted. So this is a separate issue. I think cordova needs to cache the updated project config after running cocapods. I'm not sure though. > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[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=15932232#comment-15932232 ] Shazron Abdullah commented on CB-12582: --- This sounds similar to https://issues.apache.org/jira/browse/CB-12571 -- can you confirm? > 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: iOS >Affects Versions: cordova-ios@4.3.1, 6.5.0 >Reporter: Kyle Kirbatski >Priority: Blocker > Fix For: cordova-ios@4.4.0 > > > 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.3.15#6346) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org