How to install .xap phonegap build in windows phone 8?

陌路散爱 提交于 2019-12-03 13:00:17

问题


I have developed one simple game by using phonegap android BUT after build for windows, ios, android, blackberry etc, its working only for android devices, so I can install apk file for android devices BUT for windows .xap file is not detecting in the windows phone 8 device. I have downloaded .xap from after build in phonegap. Anybody please advice me How to install .xap into wp8? Any steps and procedure appreciated a lot. Thanks in advance


回答1:


To install xap:

  1. you have to register as windows phone developer here
  2. Now connect the phone to computer with a data cable. Go to this location C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Windows Phone SDK 8.0 and run Windows Phone Developer Registration shortcut. You need to provide your microsoft account details to unlock the phone for debugging.
  3. Now run the Application Deployment shortcut from the same location and you'll be able to install the app to windows phone ( you can do this with visual studio also).

according to phoneGap also you need the windows phone sdk.




回答2:


After unlock your phone run

C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\XAP Deployment\XapDeploy.exe

select target device/emulator,
browse .xpa file ,
then Deploy

Note:Your device screen should not be locked and uninstall if already installed app have same name.




回答3:


What about sideloading .xap files from SD-Card ?

Try this link, it may be helpful. http://www.windowsphone.com/en-in/how-to/wp8/apps/how-do-i-install-apps-from-an-sd-card?signin=true




回答4:


You need to unlock and install the XAP installer within the Windows Phone SDK




回答5:


You can use also cmd line command like C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Tools\XAP Deployment\XapDeployCmd.exe /installlaunch D:\PhoneApp1.xap /targetdevice:xd or rely on automated tools like cordova, but you'll need Update 2 of Visual Studio 2012 to be able to access the XapDeployCmd.execommand. XapDeploy is already with the package of wp8 SDK, XapDeployCmdis not.


Source:

[1] How to Deploy .xap using command prompt

[2] http://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html#The%20Command-Line%20Interface

[3] https://msdn.microsoft.com/en-us/library/windows/apps/ff402565%28v=vs.105%29.aspx



来源:https://stackoverflow.com/questions/22553263/how-to-install-xap-phonegap-build-in-windows-phone-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!