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

Build fails due to capabilities with m: prefixes are incorrectly sorted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.6.0
    • None
    • cordova-windows

    Description

      Repro steps:

      cordova create app
      cd app
      cordova platform add windows
      cordova plugin add https://github.com/apache/cordova-plugin-contacts
      cordova plugin add https://github.com/apache/cordova-plugin-contacts
      cordova build windows
      

      Observe the following error

      C:\temp\win81\contactsTest\platforms\windows\build\phone\debug\anycpu\AppxM anifest.xml(41,6): error APPX1404: File content does not conform to specified schema. The element 'Capabilities' in namespace 'http://schemas.microsof t.com/appx/2010/manifest' has invalid child element 'Capability' in namespace 'http://schemas.microsoft.com/appx/2014/manifest'. List of possible elem ents expected: 'DeviceCapabilityChoice, DeviceCapability' in namespace 'http://schemas.microsoft.com/appx/2010/manifest' as well as 'DeviceCapability'
       in namespace 'http://schemas.microsoft.com/appx/2013/manifest'. [C:\temp\w in81\contactsTest\platforms\windows\CordovaApp.Phone.jsproj]
      

      package.phone.appxmanifest contains the following section which is invalid since all Capabilities should go before DeviceCapabilities

          <Capabilities>
              <Capability Name="internetClientServer" />
              <Capability Name="picturesLibrary" />
              <DeviceCapability Name="webcam" />
              <m3:Capability Name="contacts" />
          </Capabilities>
      

      Attachments

        Activity

          People

            purplecabbage Jesse MacFadyen
            sgrebnov Sergey Grebnov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: