preference windows-arch is not supported

  • 1
  • Question
  • Updated 4 years ago
I built a windows 10 app using phonegap build.-(cli-6.1.0).
I get the ".appx" file I can't deploy to my Lumia 650 Windows Phone.
This phone use the "arm" architecture, so I tried to use the "preference name windows-arch" but the compilation failed.
I tried 'anycpu', 'arm' and 'x86' with the same result:
"Oh geez. Your build failed. Sorry, but a problem occurred on the build server".
Please help.
Thanks
Serge
Photo of Serge Charbit

Serge Charbit

  • 75 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Serge,
Are you using CLI or Build?
There is no documentation for Build that mentions windows-arch.

Jesse
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
It's in the Blog about cli-6.1.0
Keep up with the pace, back there! ;-)
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
Ahhhh... Posted late in the day again.
Photo of Serge Charbit

Serge Charbit

  • 75 Posts
  • 0 Reply Likes
Thank you for your help.
I just posted this on the blog:

I tried to use these capabilities without success.
I'm using PGB "cli-6.1.0".
If i don't use both "preference" for windows-appx-target and for windows-arch, build is OK but I get only a X86 file named myApp.Windows10_2.2.4.0_x86_debug.appx.
And this file can't be deployed on my Lumia 650 which is an "arm" architecure.
If I add these files on my config.xml:

the build fails with this message :
Oh geez. Your build failed. Sorry, but a problem occurred on the build server.
And if i open the log i got this error:
error APPX1404: File content does not conform to specified schema....
Please can you help?
Best regards
Serge
Photo of Serge Charbit

Serge Charbit

  • 75 Posts
  • 0 Reply Likes
Oops,
here are the two lines missing:

<preference name="windows-appx-target" value="8.1-phone" />
<preference name="windows-arch" value="anycpu" />