Visual Studio Cordova - 无法部署应用程序 [英] Visual Studio Cordova - can't deploy app

查看:221
本文介绍了Visual Studio Cordova - 无法部署应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio Enterprise 2015与Cordova工具。我有一个简单的自举HTML5应用程序和一个iMac运行remotebuild代理。

I'm using Visual Studio Enterprise 2015 with Cordova Tools. I have simple bootstrapped HTML5 app, and an iMac running the remotebuild agent.

我有一个iPad连接到我的Windows机器与VS,我选择调试 - iOS - >本地设备

I have an iPad connected to my Windows machine with VS, and I'm selecting Debug -> iOS -> Local Device

VS似乎成功地将构建请求发送到iMac,它构建成功,但随后VS输出窗口重复build completed successfully 。

VS seems to successfully post the build request to the iMac, it builds successfully, but then VS output window repeats over and over that "build completed successfully".

我无法看到如何在连接的iPad上安装我的应用程序 - 我安装了配置文件,并安装了iTunes,但不知道什么是应该发生下一步。

I can't see how to install my app on the connected iPad - I've installed a provisioning profile, and have iTunes installed, but no idea what is supposed to happen next.

推荐答案

它在visual studio 2015的一个错误,似乎影响ios开发人员运行OSX Yosemite(大多数报告来自该版本)

Its a bug in visual studio 2015 and seems to effect ios developers running OSX Yosemite (Most reports were coming from that version)

在转换过程中git集成有2个常见问题(可能是您的项目在传输过程中创建了一个):

there are 2 common problems with git integration in the transformation process(its likely that your project has created one during the transfer):


  1. .git *(.gitignore等)位于错误的资料夹中

  2. .git *(.gitignore等)配置不正确

解决方案:


  1. 任何.git *到你的根文件夹。即包含.sln文件的文件夹,除了位于其他平台(android等)文件夹的文件夹,它们可能位于项目文件夹(根项目文件夹中的一级)或不太可能的www文件夹。

  2. 重新配置.git *文件,因为它不是一个git相关的问题,我会尽量不打扰细节,但一个示例视觉工作室.gitignore可以找到
    此处(很可能只解决您的问题)

  1. move anything .git* to your root folder. i.e the folder with .sln file except the ones located in other platforms' (android, etc.) folder, they are probably located in the project folder(one level inside root project folder) or less likely, the www folder.
  2. reconfigure your .git* files, since its not a git related question i'll try not to bother with details but an example visual studio .gitignore can be found here (it will most likely solve your problem alone)

希望答案是有帮助的,btw让我知道解决方案是否解决了您的问题,在VS 2015中cordova开发有很多错误,你最好的赌注是等待对于更新1不幸。

Hope the answer was helpful, btw let me know whether the solution has fixed your problem, there are plenty of bugs in cordova development in V.S 2015 and your best bet is to wait for update 1 unfortunately.

这篇关于Visual Studio Cordova - 无法部署应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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