cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerroyd Moore (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CB-9263) Windows8 build fails when using local project/platform caches
Date Mon, 29 Jun 2015 23:16:04 GMT

     [ https://issues.apache.org/jira/browse/CB-9263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jerroyd Moore updated CB-9263:
------------------------------
    Description: 
Related: https://issues.apache.org/jira/browse/CB-5350

I created a copy of the cordova-windows project on my localhost. When I perform a platform
add against the local copy, the build fails as the AppxManifest.xml file does not conform
to the specified schema.

1. clone cordova-windows $ git clone https://github.com/apache/cordova-windows.git /path/to/cordova-windows
2. Add the local platform. $  cordova platform add /path/to/cordova-windows/ --verbose
3. Prepare the platform. $ cordova prepare windows --verbose --release -- --verbose --phone
4. Compile for windows phone 8.1. $ cordova compile windows --verbose --release -- --verbose
--phone
d:\CordovaHelloWorld\platforms\windows\build\phone\release\anycpu\AppxManifest.
The following error occurs during build:
D:\path\to\windows-cordova\build\phone\release\anycpu\AppxManifest.xml(40,6): error APPX1404:
File content does not conform to specified schema. T
he element 'Capabilities' in namespace 'http://schemas.microsoft.com/appx/2010/
manifest' has invalid child element 'Capability' in namespace 'http://schemas.m
icrosoft.com/appx/2010/manifest'. List of possible elements expected: 'DeviceCa
pabilityChoice, DeviceCapability' in namespace 'http://schemas.microsoft.com/ap
px/2010/manifest' as well as 'DeviceCapability' in namespace 'http://schemas.mi
crosoft.com/appx/2013/manifest'. [D:\path\to\windows-cordova\CordovaApp.Phone.jsproj]

The AppxManifest.xml contains the following block:
  <Capabilities>
    <Capability Name="internetClientServer" />
    <DeviceCapability Name="location" />
    <Capability Name="picturesLibrary" />
    <DeviceCapability Name="webcam" />
  </Capabilities>

It should be organized with Capability first and DeviceCapability second:
<Capabilities>
<Capability Name="internetClient" />
<Capability Name="picturesLibrary" />
<DeviceCapability Name="location" />
<DeviceCapability Name="webcam" />
</Capabilities>

  was:
Related: https://issues.apache.org/jira/browse/CB-5350

I created a copy of the cordova-windows project on my localhost. When I perform a platform
add against the local copy, the build fails as the AppxManifest.xml file does not conform
to the specified schema.

1. clone cordova-windows $ git clone https://github.com/apache/cordova-windows.git /path/to/cordova-windows
2. Add the local platform. $  cordova platform add /path/to/cordova-windows/ --verbose
3. Prepare the platform. $ cordova prepare windows --verbose --release -- --verbose --phone
4. Compile for windows phone 8.1. $ cordova compile windows --verbose --release -- --verbose
--phone
d:\CordovaHelloWorld\platforms\windows\build\phone\release\anycpu\AppxManifest.
The following error occurs during build:
D:\path\to\windows-cordova\build\phone\release\anycpu\AppxManifest.xml(40,6): error APPX1404:
File content does not conform to specified schema. T
he element 'Capabilities' in namespace 'http://schemas.microsoft.com/appx/2010/
manifest' has invalid child element 'Capability' in namespace 'http://schemas.m
icrosoft.com/appx/2010/manifest'. List of possible elements expected: 'DeviceCa
pabilityChoice, DeviceCapability' in namespace 'http://schemas.microsoft.com/ap
px/2010/manifest' as well as 'DeviceCapability' in namespace 'http://schemas.mi
crosoft.com/appx/2013/manifest'. [D:\path\to\windows-cordova\CordovaApp.Phone.jsproj]


> Windows8 build fails when using local project/platform caches
> -------------------------------------------------------------
>
>                 Key: CB-9263
>                 URL: https://issues.apache.org/jira/browse/CB-9263
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI, Windows 8
>    Affects Versions: 4.1.0
>         Environment: Windows8.1.
>            Reporter: Jerroyd Moore
>            Assignee: Jesse MacFadyen
>
> Related: https://issues.apache.org/jira/browse/CB-5350
> I created a copy of the cordova-windows project on my localhost. When I perform a platform
add against the local copy, the build fails as the AppxManifest.xml file does not conform
to the specified schema.
> 1. clone cordova-windows $ git clone https://github.com/apache/cordova-windows.git /path/to/cordova-windows
> 2. Add the local platform. $  cordova platform add /path/to/cordova-windows/ --verbose
> 3. Prepare the platform. $ cordova prepare windows --verbose --release -- --verbose --phone
> 4. Compile for windows phone 8.1. $ cordova compile windows --verbose --release -- --verbose
--phone
> d:\CordovaHelloWorld\platforms\windows\build\phone\release\anycpu\AppxManifest.
> The following error occurs during build:
> D:\path\to\windows-cordova\build\phone\release\anycpu\AppxManifest.xml(40,6): error APPX1404:
File content does not conform to specified schema. T
> he element 'Capabilities' in namespace 'http://schemas.microsoft.com/appx/2010/
> manifest' has invalid child element 'Capability' in namespace 'http://schemas.m
> icrosoft.com/appx/2010/manifest'. List of possible elements expected: 'DeviceCa
> pabilityChoice, DeviceCapability' in namespace 'http://schemas.microsoft.com/ap
> px/2010/manifest' as well as 'DeviceCapability' in namespace 'http://schemas.mi
> crosoft.com/appx/2013/manifest'. [D:\path\to\windows-cordova\CordovaApp.Phone.jsproj]
> The AppxManifest.xml contains the following block:
>   <Capabilities>
>     <Capability Name="internetClientServer" />
>     <DeviceCapability Name="location" />
>     <Capability Name="picturesLibrary" />
>     <DeviceCapability Name="webcam" />
>   </Capabilities>
> It should be organized with Capability first and DeviceCapability second:
> <Capabilities>
> <Capability Name="internetClient" />
> <Capability Name="picturesLibrary" />
> <DeviceCapability Name="location" />
> <DeviceCapability Name="webcam" />
> </Capabilities>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message