You might try the cli-6.0.0 version or the cli-5.2.0 version (doing so might break some plugins), but if you need a fast build, it might be your best option.
Also, please post the full build log so that we can help narrow down the problem.
Thanks for your input! I have tried the 6.0.0 version and 5.2.0 version before... They both don't work. As long as I don't change the cli it works.
(now recently I have been uploading newer versions of my app, and for some reason it doesn't update the cli or anything else I change in my config.xml file... very odd)
This was the only thing I could read in my log of the windows build error...
Build Date: 2016-06-17 20:49:43 +0000
Sorry so the 5.2.0 standard version always worked... But the file I get to download is a xap file not appx.
The 6.1.0 builds should work now... we're seeing intermittent certifcate errors that we haven't yet managed to eliminate. If it crops up, you may have to wait a bit before we re-provision the server. Inconvenient I know, working on eliminating. Windows
This may be a work around thought i would share. I was able to build App for WP8.1 and install it on WP10 -- BTW this was for a business /enterprise app, this may or may not be the same for Store apps.
- Build your app for WP8.1 on PGB then download it to your desktop computer
- Run this power Shell Precompile & sign script. make sure your paths are correct and you can change the name if you want.
- powershell.exe -File "c:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\MDILXAPCompile\BuildMDILXap.ps1" -xapfilename "c:\Users\username\Desktop\WP8\app-7.xap" npfxfilename "c:\Users\username\Desktop\WP8\Windows8MobileSigningCertificate.pfx" -password mypasswordhere
- You will need to:
- Download WP8.1 SDK
- create a pfx certificate to sign the app
- make an .AET token and installed it first so the app can be installed 2nd.
hope this helps
I'm having the same issue using CLI-6.1.0.
When I specify
<preference name="windows-appx-target" value="8.1-phone"/>
I get this error:
CertUtil: -importPFX command FAILED: 0x80070002 (WIN32: 2 ERROR_FILE_NOT_FOUND)
CertUtil: The system cannot find the file specified.
<preference name="windows-appx-target" value="uap"/>or no preference:
I get this error:
C:\cygwin\tmp\gimlet\2149308\project\build\phone\release\anycpu\AppxManifest.xml(41,6): error APPX1404: File content does not conform to specified schema. The element 'Capabilities' in namespace 'http://schemas.microsoft.com/a... has invalid child element 'Capability' in namespace 'http://schemas.microsoft.com/a.... List of possible elements expected: 'DeviceCapabilityChoice, DeviceCapability' in namespace 'http://schemas.microsoft.com/a... as well as 'DeviceCapability' in namespace 'http://schemas.microsoft.com/a.... [C:\cygwin\tmp\gimlet\2149308\project\CordovaApp.Phone.jsproj] !
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.
Hope it helps someone else.
1 person found this helpful
bertjeuh88 The PGB team just added support for cli-6.3.0 version to PhoneGap Build ([https://twitter.com/PhoneGapBuild/status/758412620038713345](url)).
I rebuilt my app and the error has disappeared.
You may want to give it a try.
Just have a different issue now, it's not installing the vibration plugin (`cordova-plugin-vibration`)
It works for me in a test on Windows 10 UWP with cordova-plugin-dialogs if I use cli-6.3.0 and specify the CPU architecture.