[
https://issues.apache.org/jira/browse/CB-11691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16480906#comment-16480906
]
ASF subversion and git services commented on CB-11691:
------------------------------------------------------
Commit 9b4937493a397246188fee8284f62b9507a14c75 in cordova-common's branch
refs/heads/master from [~dpogue]
[ https://gitbox.apache.org/repos/asf?p=cordova-common.git;h=9b49374 ]
CB-11691: Fix for modifying binary plists
The bplist-parser module returns the plist dictionary object wrapped in
an array. When making modifications with `<edit-config>` or
`<config-file>`, it would add the changes as properties to the array but
then ignore them when writing out to the filesystem.
> Plugin <config-file> can't modify binary plists
> -----------------------------------------------
>
> Key: CB-11691
> URL: https://issues.apache.org/jira/browse/CB-11691
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-common
> Environment: Mac OS X version: 10.11.6
> Node version: v0.12.7
> Cordova version: 6.3.0
> Reporter: Sky Kelsey
> Priority: Major
>
> https://github.com/apache/cordova-lib/blob/master/cordova-common/src/util/plist-helpers.js#L27
> Cordova expects plists to be in XML format, and not binary. However, it fails
> to apply changes silently, masking the problem. Can you please log failures
> to modify config files, and ideally also add support for binary plists? All
> plists are generated as binary in xcode projects by default, so anyone who
> develops a plugin and needs to modify a plist is going to hit this issue.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]