[
https://issues.apache.org/jira/browse/CB-7781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14902438#comment-14902438
]
Alex commented on CB-7781:
--------------------------
UPDATE for others ;-)
If you are here because you couldn't installed Cordova Facebook official
plugin, you can update it manually in this way:
Copy the build.js for backup ... just in case:
sudo cp
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/plist/lib/build.js
/tmp/build.js.bak
Edit the file
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/plist/lib/build.js
applying the changes as [~aetchegoyen] said, here:
https://github.com/aetchegoyen/plist.js/commit/6eed7aedbee90db2315b985cb952778696190ba0
Then you can uninstall safely:
$ cordova plugin rm com.phonegap.plugins.facebookconnect
Uninstalling com.phonegap.plugins.facebookconnect from android
Uninstalling com.phonegap.plugins.facebookconnect from ios
Removing "com.phonegap.plugins.facebookconnect"
And leave the build.js as it was, just in case next updates will not work :P
(I don't know if I can leave it changed)
> Plugin Un-install fails for iOS with plist strings
> --------------------------------------------------
>
> Key: CB-7781
> URL: https://issues.apache.org/jira/browse/CB-7781
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugman
> Affects Versions: 3.5.0
> Environment: OS X 10.9.5, Cordova 3.6.3-0.2.13. iOS
> Reporter: Matthew McClintock
> Labels: javascript, newbie, plugins, uninstall
>
> plugin.xml contains
> {code}
> <config-file target="*-Info.plist" parent="UIBackgroundModes">
> <array>
> <string>audio</string>
> <string>fetch</string>
> </array>
> </config-file>
> {code}
> will cause `cordova plugin rm org.wbez.cordova.flimflam` command to fail:
> {code}
> Uninstalling org.wbez.cordova.flimflam from android
> Uninstalling org.wbez.cordova.flimflam from ios
> TypeError: Cannot read property 'buffer' of undefined
> at walk_obj
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/plist/lib/build.js:131:18)
> at walk_obj
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/plist/lib/build.js:98:7)
> at walk_obj
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/plist/lib/build.js:109:9)
> at Object.build
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/plist/lib/build.js:76:3)
> at ConfigFile_save [as save]
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/config-changes.js:574:47)
> at
> /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/config-changes.js:446:49
> at Array.forEach (native)
> at ConfigKeeper_save_all [as save_all]
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/config-changes.js:444:31)
> at PlatformMunger_save_all [as save_all]
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/config-changes.js:128:24)
> at Object.exports.process
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/config-changes.js:81:12)
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]