Description
When building a project using
appc run -p windows
, if selecting a Windows 10 emulator then the prompt will be re-shown without any error being fed back to the user.
If building and passing in the emulator ID, such as
appc run -p windows -T wp-emulator -C 8-1-1
then the CLI will show the error
\[ERROR\] Invalid device id Mobile Emulator 10.0.10240.0 WVGA 4 inch 512MB: Windows 10 Mobile Emulator is not supported'
*Notes*
If this check is taken out and the a Windows 10 mobile emulator is selected then the build will eventually error out with the below on install
[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.1.0.v20151026164636\node_modules\windowslib\lib\emulator.js:287:15)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
Steps to reproduce
1. Ensure you have Windows 10 mobile emulators installed
2. Build a project using
appc run -p windows
3. Select a Windows 10 mobile emulator such as Mobile Emulator 10.0.10240.0 WVGA 4 inch 512MB
4. Build a project using
appc run -p windows -T wp-emulator -C 8-1-1
Actual result
3. The emulator will not be selected, the prompt will be re-shown and there will be no feedback as to why
4. The build will error with a message similar to
\[ERROR\] Invalid device id Mobile Emulator 10.0.10240.0 WVGA 4 inch 512MB: Windows 10 Mobile Emulator is not supported'
Expected result
Emulators that are not supported should not be shown as an option to build to
https://github.com/appcelerator/titanium_mobile_windows/pull/462
Why are Windows 10 Emulators being detected from the 8.1 WPSDK? !http://puu.sh/l7qrm/2c2f317727.png! This means
8-1-1
is a Windows 10 Emulator which is causing this error on Jenkins (http://studio-jenkins.appcelerator.org/job/titanium_mobile_windows/520/console). !http://puu.sh/l7riT/91952a1700.png!Yes.
windowslib
shows them because Windows Phone 8.1 SDK tool detects them. You'll see Windows 10 mobile emulators are listed in the emulator list when you open *Windows Phone 8.1* project from Visual Studio. (See screenshot) !win10emus.png|thumbnail!Verified using: OS: Microsoft Windows 10 Pro Appc core: 5.1.0-43 Appc NPM: 4.2.1 Ti SDK: 5.1.0.v20151104190037 When building a Windows project for wp-emulator from the CLI there is no longer an option for Windows 10 emulators in the emulator selection prompt. The emulators are still shown in ti info and therefore will still be shown as an option to build to from Studio Closing ticket