Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-7781

Plugin Un-install fails for iOS with plist strings

    XMLWordPrintableJSON

Details

    Description

      plugin.xml contains

      <config-file target="*-Info.plist" parent="UIBackgroundModes">
      <array>
      <string>audio</string>
      <string>fetch</string>
       </array>
      </config-file>
      

      will cause `cordova plugin rm org.wbez.cordova.flimflam` command to fail:

      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)
      

      Attachments

        Issue Links

          Activity

            People

              kerrishotts Kerri Shotts
              fireproof Matthew McClintock
              Votes:
              9 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: