cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Grebnov (JIRA)" <>
Subject [jira] [Created] (CB-5350) Windows8 build fails due to invalid 'Capabilities' definition
Date Tue, 12 Nov 2013 08:19:17 GMT
Sergey Grebnov created CB-5350:

             Summary: Windows8 build fails due to invalid 'Capabilities' definition
                 Key: CB-5350
             Project: Apache Cordova
          Issue Type: Bug
          Components: CLI, Windows 8
         Environment: Windows8
            Reporter: Sergey Grebnov
            Assignee: Sergey Grebnov

1. Add the following plugins to the project: org.apache.cordova.geolocation,
2. Execute build for windows8 platform.
3. The following error occurs during build
  C:\..\mobilespec\platforms\windows8\bin\Debug\AppxManifest.xml(34,6): error APPX1404: File
content does not conform to specified schema. The element 'Capabilities' in namespace ''
has invalid child element 'Capability' in namespace ''.
List of possible elements expected: 'DeviceCapability' in namespace ''.

Same error if open generated project in Visual Studio.

AppxManifest.xml contains the following block

    <Capability Name="internetClient" />
    <DeviceCapability Name="location" />
    <Capability Name="picturesLibrary" />
    <DeviceCapability Name="webcam" />

But as per manifest scheme definition all Capability elements must go before DeviceCapability
( . So it should be
    <Capability Name="internetClient" />
    <Capability Name="picturesLibrary" />
    <DeviceCapability Name="location" />
    <DeviceCapability Name="webcam" />
It seems we should manually sort Capabilities child element after they are merged from plugins

This message was sent by Atlassian JIRA

View raw message