Open pjc2007 opened 7 years ago
Hey @pjc2007 . You can just pass the argument with "--" like this:
ionic cordova build windows --release -- --archs="x64"
Then the cordova command should look like:
cordova build windows "--archs=x86 x64 arm"
Greetings!
Thanks @GabbaBungo yes that works! Very weird having the double double-dash, but this works. Cheers
Note: for support questions, please use one of these channels:
https://forum.ionicframework.com/ http://ionicworldwide.herokuapp.com/
Short description of the problem:
I am trying to build for Windows 10, but keep getting an error to do with "Any CPU"
I have an outline of it on the forum here
What behavior are you expecting?
For the build to succeed.
Steps to reproduce:
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc) It seems that the ionic call is not passing the command to cordova. When I run
ionic cordova build windows --release --arch=x86
I see it callingcordova build windows --release
ie without the --arch=x86 flagIf I manually call
cordova build windows --release --arch=x86
it then seems to build.