microsoft / vsts-cordova-tasks

Streamline CI setup for your Apache Cordova, PhoneGap, Ionic, or Cordova CLI compatible app using a set of useful pre-defined build steps for VS Team Services or TFS
http://go.microsoft.com/fwlink/?LinkID=691188
Other
25 stars 27 forks source link

Error when specifying archs for ionic cordova build windows #86

Open graemeenglish opened 6 years ago

graemeenglish commented 6 years ago

I'm trying to supply the archs parameter as below but am getting the following error

2018-03-26T08:35:41.2617854Z > cordova build windows --bundle --archs="x86 x64 arm" --release --device
2018-03-26T08:35:42.7469043Z (node:4980) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Invalid attribute predicate
2018-03-26T08:35:42.7469799Z (node:4980) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Command: cordova build windows Arguments: --prod --device -- --bundle --archs="x86 x64 arm" --release

The following works fine outside of VSTS in a command window: ionic cordova build windows --device -- --release --bundle --archs="x86 x64 arm"

graemeenglish commented 6 years ago

This also doesn't seem to cause the task to fail.

drewgillies commented 6 years ago

Hi @graemeenglish --first things first--if you're using a version of Cordova other than 6.3.1, this is an unsupported scenario (that's the only version Visual Studio and by extension vsts-cordova-tasks supports). Please let me know.

graemeenglish commented 6 years ago

I get a slightly different error with 6.3.1

2018-05-15T15:09:53.4145892Z > cordova build windows --bundle --archs="x86 x64 arm" --release --device
2018-05-15T15:09:54.0386577Z Error: Unknown platforms: x64, arm"
2018-05-15T15:09:54.0675603Z [ERROR] An error occurred while running cordova build windows --bundle --archs="x86 x64 arm" --release --device (exit code 1).