Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23816] Windows: Unable to build to an 8.1 emulator

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2016-08-26T05:15:47.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 6.0.0, windowslib 0.4.20
ComponentsWindows
Labelsqe-6.0.0, regression
ReporterEwan Harris
AssigneeGary Mathews
Created2016-08-24T14:08:59.000+0000
Updated2016-08-29T12:11:06.000+0000

Description

Description

*This is a regression from 5.4.0.GA* When building to a Windows Phone 8.1 emulator the following happens. * An Windows 10 Mobile emulator is launched * The build fails with the below, probably because the emulator is a Windows 10 Mobile emulator
[ERROR] The deployment operation failed because the package targets the wrong processor architecture.
[ERROR] Error: The deployment operation failed because the package targets the wrong processor architecture.
    at ChildProcess.<anonymous> (C:\ProgramData\Titanium\mobilesdk\win32\5.5.0.v20160822000355\node_modules\windowslib\lib\wptool.js:769:10)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:827:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
*Notes* When using 5.5.0 and 6.0.0 the device-id for the emulator launched is 8-1-1, in 5.4.0.GA it is 8-1-13. In previous SDKs (and 5.4.0.GA), 8-1-1 was a Windows 10 Mobile emulator which was removed from ti info output and emulator selection prompts TIMOB-19811, which explains why when selecting that option launches a Windows 10 emulator. I believe this change is the reason for the error outlined above

Steps to reproduce

Install either the latest 5_5_X or 6_0_X SDK. appc ti sdk install -b 5_5_X -d or appc ti sdk install -b 6_0_X -d

Ensure that the installed SDK above is your selected SDK appc ti sdk select <sdk_version> and also the SDK in your tiapp.xml

Build an application using appc run -p windows -T wp-emulator

Select an 8.1 emulator in the prompt

Actual result

A Windows 10 Mobile emulator will be launched and the build process will fail with the above error

Expected result

A Windows Phone 8.1 emulator will be launched, build process should not fails

Comments

  1. Gary Mathews 2016-08-26

    master: https://github.com/appcelerator/windowslib/pull/55 does this need a 6_0_X backport?
  2. Kota Iguchi 2016-08-26

    [6_0_X] https://github.com/appcelerator/titanium_mobile/pull/8272 [master] https://github.com/appcelerator/titanium_mobile/pull/8275
  3. Ewan Harris 2016-08-29

    Verified using: Windows 10 Pro Appc core: 6.0.0-31 Appc NPM: 4.2.8-5 Ti SDK: 6.0.0.v20160829005859 Windows Phone 8.1 Emulator Using the SDK version above, 8.1 emulators can now be built to. Other build choices still work as expected Closing ticket

JSON Source