Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Error when specifying archs for ionic cordova build windows #86

Open
graemeenglish opened this issue Mar 26, 2018 · 3 comments
Open

Error when specifying archs for ionic cordova build windows #86

graemeenglish opened this issue Mar 26, 2018 · 3 comments

Comments

@graemeenglish
Copy link

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
Copy link
Author

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

@drewgillies
Copy link
Member

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
Copy link
Author

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants