Early on there were several reported issues.
When ColinBau reported the issue, I asked him to confirmed his situation.
Source Code:
https://github.com/jessemonroy650/Phonegap--Generic-Boilerplate-for-cli-6.0.0
Build
https://build.phonegap.com/apps/1907350/share
Screens
cli-5.4.1 everything okay
cli-6.0.0 FAIL
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Posted 4 years ago
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
IOS issues
- http://community.phonegap.com/nitobi/topics/build-failure-ios-on-cli-6-0-0
- http://community.phonegap.com/nitobi/topics/cli-6-0-0-gives-wrong-icon-and-splash-on-ios
Android
- http://community.phonegap.com/nitobi/topics/cli-6-0-0-gives-wrong-android-version-code-when-based-on-build-number
Windows
- http://community.phonegap.com/nitobi/topics/windows-build-always-error-no-mater-what-plugin-install
- http://community.phonegap.com/nitobi/topics/no-windows-build
- http://community.phonegap.com/nitobi/topics/building-for-windows-winphone-does-not-seem-to-work-cli-6-0-0
- http://community.phonegap.com/nitobi/topics/installed-6-0-0-but-where-is-windows-support
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
ryan, Developer
- 1538 Posts
- 132 Reply Likes
If you click the Log button on your failed build it will often shed light on what went wrong, if you're able to interpret the native compile logs.
Having a look at the other reported issues.
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Yes. Removing the dash in the 'name' field worked. I deleted the project in error and create a new one. It is here:
https://build.phonegap.com/apps/1908842/builds
This seems like a bogus requirement. I follow your suggestion to read the "error log". The error reporting seems bogus as well. It says "The 'Id' attribute is invalid". (See below) A developer would presume it means the 'id' in the header field, NOT the 'name' field.
This QUIRK should have a comment in two places.
http://docs.build.phonegap.com/en_US/configuring_basics.md.html#The%20Basics
and
http://docs.build.phonegap.com/en_US/configuring_basics.md.html#_platform_build_selection
Okay, we'll get the word out.
Thanks
Jesse
Build Date: 2016-02-11 21:19:05 +0000
--------------------------------------------------------------------------------
PLUGIN OUTPUT
--------------------------------------------------------------------------------
Building project: C:\project\CordovaApp.Phone.jsproj
Configuration : debug
Platform : anycpu
C:\project\build\phone\debug\anycpu\AppxManifest.xml(43,18): error APPX1404: File content does not conform to specified schema. The 'Id' attribute is invalid - The value 'Generic-Boilerplate8' is invalid according to its datatype 'http://schemas.microsoft.com/appx/201...' - The Pattern constraint failed. [C:\project\CordovaApp.Phone.jsproj]
- 730 Posts
- 18 Reply Likes
just like Jesse said
Removing the dash in the 'name' field worked
but the fact is,this is impossible
let me show you a testing and very short config.xml
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="XXX" version="12345">
<name>TEST</name>
<gap:platform name="winphone" />
<preference name="phonegap-version" value="cli-6.0.0" />
</widget>
don't you see the "phonegap-version" attribute ?
it have the dash (-) in the 'name' field too (this just a example,in fact,a lot of different attribute have this symbol too)
so I think,this is not a solution way
another thing,click the Log button have no any help,because when I click it
it only show the line
Build Date: 2016-02-12 15:14:19 +0000
that's all
ryan, Developer
- 1538 Posts
- 132 Reply Likes
<name></name> element because this field gets used in the Application Manifest's ID tag, and apparently these Windows builds don't accept a dash in the ID. For example the error log in this case showed:
C:\project\build\phone\debug\anycpu\AppxManifest.xml(43,18): error APPX1404: File content does not conform to specified schema. The 'Id' attribute is invalid - The value 'PhoneGapBuild-Tester' is invalid according to its datatype 'http://schemas.microsoft.com/appx/2010/manifest:ST_ApplicationId' - The Pattern constraint failed. [C:\project\CordovaApp.Phone.jsproj]
This is unrelated to the dash in phonegap-version.
- 730 Posts
- 18 Reply Likes
but I really tried many times with my config.xml
for example...
case 1
no mater
<name>jQueryMobile for Cordova Edition</name>
OR
<name>jQueryMobileforCordovaEdition</name>
winphone always build fail with cli-6.0.0
case 2
if my config.xml have this line
<preference name="phonegap-version" value="cli-6.0.0" />
winphone will build fail
otherwise (I mean delete this line),build success
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
There were 5 people with issues.
1. mine was resolved by removing dash (-)
2. person decided to build local, the person responses no more
3. the other issue resolved by removing
<feature> tag, which is now obsolete.
4. the other person forgot to add
<platform name="wp8">
This only leaves you.
Jesse
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
Careful when drawing conclusions though, Jesse!
Over the years, Colin has always posted detailed reports of true issues...and quite often, he was the first to report such problem.
@Colin: if your Winphone build fails, do you get the exact same message in the log as quoted by Ryan 13 hours ago? Does the log complain about
The 'Id' attribute is invalid - The value '....-....' is invalid according to its datatype
?
Or do you have another error (which might indicate that there is more than one issue with Winphone builds)?
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Yes, thank you. I am not saying that Colin is wrong. I am only saying to Colin, "here are some other things you should try." I know if Colin has found an issue, it is very likely a bug, and also a nitche than lesser developers miss.
Cheers
Jesse
- 730 Posts
- 18 Reply Likes
thanks you guys reply
let me explain once again [if could,please follow my step and try it yourself]
step 1
please download this zip file
http://www.littlebau.com/phonegap_bui...
step 2
you can uncompress this zip file or upload this zip file to your own "build.phonegap.com" directly
step 3
about after 6 seconds,winphone appear the build fail
step 4
if I click the "Log" button,it will only show one line
I found (only cli-6.0.0 have this issue,5.2.0 or 5.4.1 won't) and really tried many times
in the config.xml
step 1
if you delete this line
<preference name="phonegap-version" value="cli-6.0.0" />
step 2
let all files compress to a new zip and upload to "build.phonegap.com" again
step 3
this time you will found,winphone build success (I don't know why too,but this is the fact)

JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Hmm.... I got it to build, but I replaced your config.xml with one of mine.
I'm going to work on yours to try to find the issue.
Jesse
Build Log & Error
Build Date: 2016-02-13 22:28:49 +0000
--------------------------------------------------------------------------------
PLUGIN OUTPUT
--------------------------------------------------------------------------------
Building project: C:\project\CordovaApp.Phone.jsproj
Configuration : debug
Platform : anycpu
package.phone.appxmanifest(25,6): error APPX3009: App manifest validation failed. Length of element '/Package/Properties/PublisherDisplayName' must be at least 1 character(s). [C:\project\CordovaApp.Phone.jsproj]
package.phone.appxmanifest(21,75): error APPX3019: App manifest validation failed. Value 'CN=' of attribute '/Package/Identity/@Publisher' is not a valid distingushed name. [C:\project\CordovaApp.Phone.jsproj]
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Okay. Found this issue. You forgot to use the 'author' field.
If should look like this,
<author href="http://colinbau.com" email="colin@mail.com">Colin Bau</author>
I check the documentation. It is in the example, but not the text describing that section. I will file a bug report to get that fixed.
Good Job
Jesse
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
okay I filed a bug report for the documentation issues.
For Config.xml missing documentation for elements field 'author' and 'name'
The three (3) major error are:
1) a dash (-) is not allowed in the
<name> field for Windows. (There may be other requirements. I did not check)
2) the
<author> element is required for Windows. (I double checked this. It is not required for Android or iOS.)
3) the
<author> is listed in the example, but not describe in the documentation
Jesse
- 730 Posts
- 18 Reply Likes
- 24 Posts
- 1 Reply Like
if you delete this line
<preference name="phonegap-version" value="cli-6.0.0" />
doing this just makes it build as cli-5.2.0, so not a solution
I have no dashes in the name and the author is specified.
I have the same problem, none of the solutions work.
Any other suggestions?
Marko
- 730 Posts
- 18 Reply Likes
- 24 Posts
- 1 Reply Like
<?xml version="1.0" encoding="UTF-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" xmlns:android="http://schemas.android.com/apk/res/android" id="XXX" version="6.0001">
<name>TEST</name>
<gap:platform name="winphone" />
<preference name="phonegap-version" value="cli-6.0.0" />
</widget>
and then remove the cli-6.0.0 line?
This will fall back to cli-5.2.0 ... and not build winphone 4.3.0... see your own screenshot.
Or did I miss something here?
I think I am staying with cli-5.4.1 for now until Phonegap Build is fixed.
- 730 Posts
- 18 Reply Likes
yes you can use 5.4.1 for now
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
5.4.1 is not officially listed, but it is available. If you still have issues, please let us know. And if you have an errorlog, please post it.
Jesse
- 24 Posts
- 1 Reply Like
The build fails...
ryan, Developer
- 1538 Posts
- 132 Reply Likes
<feature/> tags may be causing windows failures in the new version (cli-6.0.0). We're working this out but in the meantime as a solution you should be able to remove all of your feature tags -- they translate to permissions, and any permissions you need should be added implicitly by the plugins requiring them.- 24 Posts
- 1 Reply Like
<!-- Features -->
<feature name="http://api.phonegap.com/1.0/device" />
<feature name="http://api.phonegap.com/1.0/network" />
<!-- Core plugins -->
<gap:plugin name="org.apache.cordova.device" source="npm" />
<gap:plugin name="org.apache.cordova.dialogs" source="npm" />
<gap:plugin name="org.apache.cordova.network-information" source="npm" />
<gap:plugin name="org.apache.cordova.splashscreen" source="npm" />
<gap:plugin name="org.apache.cordova.statusbar" source="npm" />
<gap:plugin name="org.apache.cordova.inappbrowser" source="npm" />
<gap:plugin name="cordova-plugin-whitelist" source="npm" />
<!-- iOS -->
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true" />
</feature>
<feature name="Notification">
<param name="ios-package" onload="true" value="CDVNotification" />
<param name="android-package" value="org.apache.cordova.dialogs.Notification" />
</feature>
ryan, Developer
- 1538 Posts
- 132 Reply Likes
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
In the past 2 years, whenever denizens remove all feature elements and fully rely on plugins, issues are solved. Always.
Also, Marko appears to be using the old, deprecated plugins. He should be using the latest plugins from npm ( and be aware that these are named differently)
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
<feature> should be removed.- 730 Posts
- 18 Reply Likes
for now I have already remove all feature tag but still build fail
hope this problem can solve as soon as possible
https://github.com/phonegap/build/iss...
- 24 Posts
- 1 Reply Like
@petra Thanks, I will check all the plugins and update if needed... the code is about a year old (with minor changes after that) and needs updating now because Google Play requires at least Cordova 4.1.1 (I think).
I know the problem is with winphone, but my code needs to work on all platforms; I don't want to maintain different versions per platform. And yes, using cli-5.2.0 would be enough too, but if 6.0.0 is available I'd rather go to the latest version.
Also; It needed those features in the config for certain functionality to work on all platforms. I will try without them later, but that requires some more testing.
ryan, Developer
- 1538 Posts
- 132 Reply Likes
- 24 Posts
- 1 Reply Like
I tried again and indeed, my problem is solved...
- 730 Posts
- 18 Reply Likes
after a few days review
the windows build still build error,but it appear different wrong message
my appid is 697726
these are my logs
https://justpaste.it/rmen
First of all,no matter what the above error is
after when I remove "cordova-plugin-vibration" and "phonegap-plugin-barcodescanner-ps" and "cordova-plugin-x-socialsharing"
the windows build appear another different wrong message again
https://justpaste.it/rmey
so...don't know how to fix this
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Both messages appear to be problems with the plugins.
Can you build successfully with the core plugins?
List of core plugins.
Jesse
- 730 Posts
- 18 Reply Likes
but the...
"cordova-plugin-vibration" is already the core plugin
"phonegap-plugin-barcodescanner-ps" is the 3rd plugin
"cordova-plugin-x-socialsharing" is the 3rd plugin
you can see my first log
https://justpaste.it/rmen
and I did another test
if I delete all 3rd plugin but let core plugin still in my config.xml
it still appear the "cordova-plugin-vibration" log
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Sorry I missed this. Are you still having an issue with Vibration? if so, can you try an earlier version of the plugin?
The blog says 2.1.0 is pinned to 6.0. But earlier version are: 2.0.0, 1.2.0, 1.1.0, and 1.0.0.
Jesse
- 730 Posts
- 18 Reply Likes
I will jump to this topic
http://community.phonegap.com/nitobi/...
"cordova-plugin-vibration" is not the true reason to cause windows build fail
- 12 Posts
- 0 Reply Likes
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers






ryan, Developer