Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

Build failed for windows (pgb), cli-6.1.0 #523

Closed
kristiKeri opened this issue Jun 8, 2016 · 5 comments
Closed

Build failed for windows (pgb), cli-6.1.0 #523

kristiKeri opened this issue Jun 8, 2016 · 5 comments

Comments

@kristiKeri
Copy link

<preference name="windows-appx-target" value="uap" />
<preference name='phonegap-version' value='cli-6.1.0'/>

Error Log:

Building project: C:\cygwin\tmp\gimlet\1259735\project\CordovaApp.Windows10.jsproj
Configuration : release
Platform : x86
C:\cygwin\tmp\gimlet\1259735\project\build\windows\release\x86\win10\AppxManifest.xml : error APPX0501: Validation error. error C00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 34, Column 6, Reason: Element '{http://schemas.microsoft.com/appx/manifest/uap/windows10}Capability' is unexpected according to content model of parent element '{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Capabilities'. Expecting: {http://schemas.microsoft.com/appx/manifest/foundation/windows10}DeviceCapability. [C:\cygwin\tmp\gimlet\1259735\project\CordovaApp.Windows10.jsproj]

@tonijn
Copy link

tonijn commented Jun 24, 2016

Have you tried building with all your plugins disabled?

@wildabeast
Copy link
Collaborator

+1 review your plugins, maybe through process of elimination. You may need to change the ordering of your plugins as I believe all DeviceCapability elements must come before any Capabilities.

@ef33zy
Copy link

ef33zy commented Aug 10, 2016

@kristiKeri I had the same issue, but by reading about Capabilities & DeviceCapability I understood that DeviceCapability is a 'child' of Capabilities. Then I found that geolocation is a DeviceCapabiliy (as mentioned in the table here), and it was at the top of my plugins list in my config.xml file.

I had other plugins that were more of Capabilities function e.g. camera, contacts e.t.c. You can see more here.
So I resolved mine by moving the geolocation plugin to the bottom of the plugins list.

@goya
Copy link
Member

goya commented Aug 27, 2016

grrr. this is an issue with windows as their xml capabilities element must have correctly ordered children. we are now doing this manually on phonegap build and a fix has been pushed to production.

a cordova fix is also being worked on as this is also an issue with cordova.

@goya goya closed this as completed Aug 27, 2016
@BarbiBimbo
Copy link

BarbiBimbo commented Jun 24, 2017

I have no idea how to read this... is it saying that ADOBE fetched the wrong plugin from NPM, or constructed an xml file incorrectly ?????

Build Date: 2017-06-24 01:25:24 +0000

PLUGIN OUTPUT

Fetching plugin "cordova-plugin-whitelist" via npm
Installing "cordova-plugin-whitelist" at "1.3.2" for windows

COMPILE OUTPUT

Building project: C:\cygwin\tmp\gimlet\2674558\project\CordovaApp.Windows10.jsproj
Configuration : debug
Platform : x86
Patching 10 in prebuild event...
Injected base.js reference to the www/index.html
Removing /( )(<script\s+(?:type="text/javascript"\s+)?src="//Microsoft.WinJS.2.0/js/base.js">\s</script>)(\s*)/ from www/index.html
Removing /( )(<script\s+(?:type="text/javascript"\s+)?src="//Microsoft.Phone.WinJS.2.1/js/base.js">\s</script>)(\s*)/ from www/index.html

C:\cygwin\tmp\gimlet\2674558\project\build\windows\debug\x86\win10\AppxManifest.xml : error APPX0501: Validation error. error C00CE169: App manifest validation error: The app manifest must be valid as per schema: Line 28, Column 80, Reason: '1.0.01.0' violates pattern constraint of '(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])(.(0|[1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])){3}'. The attribute 'Version' with value '1.0.01.0' failed to parse. [C:\cygwin\tmp\gimlet\2674558\project\CordovaApp.Windows10.jsproj]

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

6 participants