[
https://issues.apache.org/jira/browse/CB-4731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13758973#comment-13758973
]
Szabolcs Mathe commented on CB-4731:
------------------------------------
In my plugin.xml I have
<platform name="ios">
<config-file target="*-Info.plist" parent="UIBackgroundModes">
<array>
<string>location</string>
</array>
</config-file>
</platform>
Only. I can confirm each prepare will add a <string>location</string> to the
array element, but not this is the biggest problem!
Unfortunately RANDOMLY modify the
<key>NSMainNibFile</key>
<string>
</string>
<key>NSMainNibFile~ipad</key>
<string>
</string>
Structure too. When the plist has the above structure than launching on
emulator / device will result a crash.
When the plist has this structure:
<key>NSMainNibFile</key>
<string></string>
<key>NSMainNibFile~ipad</key>
<string></string>
Than runs perfectly, without crashing.
Like I said above I have no other configs in my plugin.xml regarding this. If I
remove my plugin via uninstall, than is never blow up those plist file.
Should this reported as a new bug?
Please see a detailed description here:
http://stackoverflow.com/questions/18618001/cordova-3-0-plugin-plist-config
- and if you can solve it than post an answer too :) Thank you.
> Adding config entries in plugin.xml results in duplicate .plist entries
> -----------------------------------------------------------------------
>
> Key: CB-4731
> URL: https://issues.apache.org/jira/browse/CB-4731
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugman
> Affects Versions: 3.0.0
> Environment: macosx
> Reporter: Tim Croydon
> Assignee: Braden Shepherdson
> Priority: Minor
>
> I have the following in the plugin.xml file for a custom plugin:
> {code}
> <platform name="ios">
> <config-file target="*-Info.plist" parent="UIBackgroundModes">
> <array>
> <string>location</string>
> <string>voip</string>
> </array>
> </config-file>
> </platform>
> {code}
> However, this does not generate the expected entries in the .plist file. I
> get:
> {code}
> <key>UIBackgroundModes</key>
> <array>
> <string>location</string>
> <string>voip</string>
> <string>location</string>
> <string>voip</string>
> </array>
> {code}
> i.e. elements are repeated. I have tried with a single element in the source
> plugin.xml and get the same result.
> I am using the cordova CLI to manage my plugins, platforms and build.
> (p.s. I'm new to Cordova so apologies if this is filed under the incorrect
> component)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira