本文介绍了无法在Titanium Appcelerator上运行Windows Phone 8.1仿真器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行Titanium Appcelerator制造的Android应用程序,以在Windows Phone模拟器中运行
我有VS 2013 Pro& Appcelerator Studio 4.5
我希望在Windows Phone模拟器中运行应用程序,但这会给我错误

I am trying to run an Android app made in Titanium Appcelerator, to run in Windows Phone emulator
I have VS 2013 Pro & Appcelerator Studio 4.5
I wish to run app in Windows Phone emulator, but it gives me error

[ERROR] :  Invalid "--device-id" value "8-1-1"
For help, run: titanium.js help build

命令详细信息

Operating System
  Name                        = Microsoft Windows 10 Pro
  Version                     = 10.0.10586
  Architecture                = 32bit
  # CPUs                      = 4
  Memory                      = 8479367168

Node.js
  Node.js Version             = 0.12.7
  npm Version                 = 2.11.3

Titanium CLI
  CLI Version                 = 5.0.6

Titanium SDK
  SDK Version                 = 5.2.2.GA
  SDK Path                    = C:\ProgramData\Titanium\mobilesdk\win32\5.2.2.GA
  Target Platform             = windows

Command
  c:\Program Files (x86)\nodejs\node.exe c:\Users\Test\.appcelerator\install\5.2.2\package\node_modules\titanium\lib\titanium.js build run -p windows -T ws-local --wp-sdk 10 --config-file C:\Users\Test\AppData\Loca
l\Temp\build-1462961770428.json --log-level info --no-banner --project-dir c:\Users\Test\Documents\Appcelerator_Studio_Workspace\TestProject

另外,运行时:

appc run -p windows -T ws-local --wp-sdk 8.1

我得到了:

哪个pfx文件应该对应用程序进行签名? (留空以生成):

What pfx file should sign the app? (leave blank to generate):

您的PFX密码是什么?:

What will be your PFX password?:

我都绕过Enter键.
然后,我得到提示,以密钥"作为主题密钥",输入输入私钥密码".在此处输入任何内容

Both of which I bypass with enter key.
Then I get a prompt to "Enter a Private Key Password" with "Key" as "Subject Key". Entering anything here gives

[ERROR] An error occurred during build after 4m 29s 170ms
[ERROR] Failed to create certificate (code 4294967295)

也在运行:

appc run -p windows --target wp-emulator --deploy-time development --device-id 8-1-1

礼物:

2016-05-11T10:25:57.544Z | ERROR  | An uncaught exception was thrown!
No Windows Phone emulators found
2016-05-11T10:25:57.562Z | ERROR  | No Windows Phone emulators found

我已经尝试了所有可能的解决方案...
请帮助运行模拟器

I have tried literally every possible solution...
Please help to run emulator

推荐答案

确保已安装Windows Phone sdk,并在studio中添加了其路径.确保Studio检测到SDK和仿真器.还添加Windows应用发布者ID.运行命令

Make sure windows phone sdk is installed and its path is added in studio. Make sure sdk and emulators are detected by studio. Add windows app publisher id also.Run command

appc info

在我的系统中,我在Windows部分获得以下输出.

In my system I get the following output in windows section.

Microsoft (R) Visual Studio
  14.0 (selected)
    Path                      = C:\Program Files (x86)\Microsoft Visual Studio 14.0\
    CLR Version               = v4.0.30319
    MSBuild Version           = v14.0.24730.2
    Windows Phone SDKs        = not installed

Microsoft (R) Windows Phone SDK
  8.1 (selected)
    Path                      = C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\

Windows PowerShell
    Enabled                   = yes

Windows Phone Emulators
8.1
  Emulator 8.1 WVGA 4 inch 512MB
    UDID                      8-1-1
  Emulator 8.1 WVGA 4 inch
    UDID                      8-1-2
  Emulator 8.1 WXGA 4.5 inch
    UDID                      8-1-3
  Emulator 8.1 720P 4.7 inch
    UDID                      8-1-4
  Emulator 8.1 1080P 5.5 inch
    UDID                      8-1-5
  Emulator 8.1 1080P 6 inch
    UDID                      8-1-6
10.0

Windows Phone Devices
  Device
    UDID                      0

如果您在系统中发现一切正常,请尝试运行以下命令.

If you find everything ok in your system try running the following command.

appc run -p windows -T wp-emulator

这篇关于无法在Titanium Appcelerator上运行Windows Phone 8.1仿真器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-03 17:04