You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Graham Mueller (JIRA)" <ji...@apache.org> on 2014/03/24 22:50:44 UTC

[jira] [Commented] (CB-5898) Removal of Plugin Leaves Traces in project.pbxproj

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

Graham Mueller commented on CB-5898:
------------------------------------

I'm seeing this same issue, though I'm having a *really* hard time reproducing it consistently. Since I'm working with some plugin development, I frequently have to run through the `plugman uninstall/install` cycle, which seems to sometimes fail to completely remove the plugin from the project.

In the cases that it fails, it seems to be because the Xcode module's 'removeFromPbxFileReferenceSection' is searching for path/name *with* quotes, but the actual filename does not have quotes around it. I'm sorry if this isn't terribly clear, I'm having a hard time debugging through this, but that's the best I've been able to find so far.

Because of this failure to remove, subsequent installs determine that the plugin is 'already installed,' and so you end up in this broken state where your plugin never actually gets added back to the Target Membership in your Xcode Project.

> Removal of Plugin Leaves Traces in project.pbxproj
> --------------------------------------------------
>
>                 Key: CB-5898
>                 URL: https://issues.apache.org/jira/browse/CB-5898
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS, Plugman
>    Affects Versions: 3.3.0
>            Reporter: Shane Carr
>
> When running `phonegap local plugin remove x.y.z` on a custom plugin, traces of the removed plugin remain in `project.pbxproj`.  A consequence is that subsequent `phonegap local plugin add` calls do not add source files to the build path.
> Manually removing all references to plugin files from `project.pbxproj` after a `phonegap local plugin remove` allows `phonegap local plugin add` to work as expected.
> I'm unsure if this is a bug in Plugman or a bug in [node-xcode|https://github.com/alunny/node-xcode].
> Let me know if you need more information or a test case.



--
This message was sent by Atlassian JIRA
(v6.2#6252)