无法在 Titanium Appcelerator 上运行 Windows Phone 8.1 模拟器 [英] Unable to run Windows Phone 8.1 Emulator on Titanium Appcelerator

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

问题描述

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

[ERROR]:无效的--device-id"值8-1-1"如需帮助,请运行:titan.js help build

命令详情

操作系统名称 = Microsoft Windows 10 专业版版本 = 10.0.10586架构 = 32 位# CPU = 4内存 = 8479367168节点.jsNode.js 版本 = 0.12.7npm 版本 = 2.11.3钛 CLICLI 版本 = 5.0.6钛SDKSDK 版本 = 5.2.2.GASDK 路径 = C:\ProgramData\Titanium\mobilesdk\win32\5.2.2.GA目标平台 = windows命令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-本地 --wp-sdk 10 --config-file C:\Users\Test\AppData\Local\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 密码是什么?:

我用回车键绕过这两个.
然后我得到一个提示输入私钥密码",密钥"作为主题密钥".在这里输入任何东西

[ERROR] 4m 29s 170ms 后构建期间发生错误[ERROR] 无法创建证书(代码 4294967295)

也在运行:

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

给出:

2016-05-11T10:25:57.544Z |错误 |抛出了一个未捕获的异常!找不到 Windows Phone 模拟器2016-05-11T10:25:57.562Z |错误 |找不到 Windows Phone 模拟器

<块引用><块引用>

即使我已经安装了 Windows Phone 8.1 模拟器

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

解决方案

确保已安装 windows phone sdk 并在 studio 中添加其路径.确保工作室检测到 sdk 和模拟器.还添加 windows 应用程序发布者 ID.运行命令

应用程序信息

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

Microsoft (R) Visual Studio14.0(已选择)路径 = C:\Program Files (x86)\Microsoft Visual Studio 14.0\CLR 版本 = v4.0.30319MSBuild 版本 = v14.0.24730.2Windows Phone SDKs = 未安装Microsoft (R) Windows Phone SDK8.1(已选)路径 = C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.1\Windows PowerShell启用 = 是Windows Phone 模拟器8.1仿真器 8.1 WVGA 4 英寸 512MBUDID 8-1-1仿真器 8.1 WVGA 4 英寸UDID 8-1-2仿真器 8.1 WXGA 4.5 英寸UDID 8-1-3模拟器 8.1 720P 4.7寸UDID 8-1-4模拟器 8.1 1080P 5.5寸UDID 8-1-5模拟器 8.1 1080P 6寸UDID 8-1-610.0Windows Phone 设备设备用户 ID 0

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

appc run -p windows -T wp-emulator

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

Command Details

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

Also, On running :

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

I get :

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

What will be your PFX password?:

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)

Also running :

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

Gives :

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

Even though i have installed Windows Phone 8.1 Emulators

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

解决方案

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

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 模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆