Skip to content

Count increases by 1 in ios.json every time I build #241

@u01jmg3

Description

@u01jmg3
  • Recently, I added the following to my config.xml to enable file sharing within my app.
<platform name="ios">
  <config-file target="*-Info.plist" parent="UIFileSharingEnabled">
    <true/>
  </config-file>
</platform>
  • This works fine. However, every time I build my app (npm run prod), a related count item within platforms/ios/ios.json increments by 1. This appears to have no maximum value and will continue to grow as I build my app. I'm also not quite sure of its purpose.
  • To note, other entries within this file also have a count item, but they remain at 1.
{
  "config_munge": {
    "files": {
      "*-Info.plist": {
        "parents": {
          "UIFileSharingEnabled": [
            {
              "xml": "<true />",
              "count": 1 <-- 1, 2, 3... 999999999
            }
          ]
        }
      }
    }
  }
}
  • A bit of digging and I found the offending code, which led me to this repo. Any ideas why it might be doing this? Is it a bug or am I doing something wrong? Is it supposed to work like this? Any help would be much appreciated.

matchingSibling.count += element.count;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions