无法在Titanium Appcelerator上运行Windows Phone 8.1模拟器

时间:2016-05-11 10:29:36

标签: windows-phone-8.1 appcelerator appcelerator-titanium appcelerator-cli

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

[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文件应该在应用上签名? (留空以生成):

您的PFX密码是什么?:

我用VER键绕过了两个。
然后我收到提示,输入私人密码"与" Key" as"主题键"。在这里输入任何内容都会给出

[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
  
    

即使我已安装Windows Phone 8.1仿真器

  

我已尝试过各种可能的解决方案......
请帮助运行模拟器

1 个答案:

答案 0 :(得分:1)

确保已安装Windows phone sdk并在工作室中添加其路径。确保工作室检测到sdk和模拟器。同时添加windows app publisher id。运行命令

appc info

在我的系统中,我在windows部分得到以下输出。

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 

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

appc run -p windows -T wp-emulator