I am new to the Cordova CLI.
I need to perform the following steps programmatically via Cordova.
If you are trying to modify a .plist in a native iOS plugin with a tag in your plugin.xml, here is what you need to do:
Make sure your .plist is xml, not binary! You can use plutil to convert a binary .plist into xml, and commit it to version control.
plutil -convert xml1 Info.plist
The instructions for indicate that target= is relative to the generated xcode project at platforms/ios/, but I found that I needed to prepend a wildcard character to my path to get it to work:
target="*/Resources/MyResources.bundle/Info.plist"
If you want to add a key at the top level of the .plist, you need to set parent equal to the key name, and then nest a tag with the value. Using an or as any examples show will cause these keys to be nested under parent.
Here is a complete example that works for me for adding multiple top level properties:
Cordova
3.2.0