适用于 Apache Cordova 的 Visual Studio 工具 - iOS 远程构建 - 省略“插件"www 内的文件夹 [英] Visual Studio Tools for Apache Cordova - iOS remotebuild - Omitting "plugins" folder within www

查看:22
本文介绍了适用于 Apache Cordova 的 Visual Studio 工具 - iOS 远程构建 - 省略“插件"www 内的文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试使用最新版本的 Visual Studio Tools for Apache Cordova (14.0.50902.4) 从 Visual Studio 2015 构建或调试 iOS Cordova 应用程序时,我遇到了一个问题,即任何名为插件"的文件夹都将在我的 Mac 上通过 remotebuild 构建期间从 www 目录中省略.

When attempting to build or debug an iOS Cordova app from Visual Studio 2015, using the latest version of Visual Studio Tools for Apache Cordova (14.0.50902.4), I bump into an issue where any folder with the name "plugins" will be omitted from within www directory during building via remotebuild on my Mac.

位于 www 文件夹之外的实际cordova插件"目录不受影响.

The actual cordova's "plugins" directory which is outside of the www folder is unaffected.

重现步骤 -

  1. 在 Mac 上,打开终端并运行 remotebuild
  2. 在 PC 上,通过打开 Cordova 项目的 Visual Studio 触发 iOS 构建或调试.
  3. 在 Mac 上,打开另一个终端并转到保存从 Visual Studio 发送到 remotebuild 进行构建的远程构建文件的文件夹 -

/Users/someuser/.taco_home/remote-builds/taco-remote/builds/xxxxx/cordovaApp/

/Users/someuser/.taco_home/remote-builds/taco-remote/builds/xxxxx/cordovaApp/

然后我可以看到cordova的正常插件"文件夹.但是 www 文件夹中的其他插件文件夹将丢失.

Then I can see the normal "plugins" folder for cordova. But other plugins folder within www folder will be missing.

当我们升级到最新版本的cordova工具和visual studio(使用visual studio 2013时工作)后,我目前正在使用的cordova应用程序变成空白时发现了这个问题

Found this issue when a cordova app I am currently working on became blank after we have upgraded to latest version of the cordova tools and visual studio (was working when using visual studio 2013)

最近有人遇到过这种情况吗?

Has anyone come across this recently?

此外,如果我将plugins"文件夹的名称更新为大写的Plugins"——那么就不会有问题,文件夹和其中的文件将被发送到 Mac/remotebuild 进行构建:P 这有效如果只有 1 或 2 个插件文件夹是我自己创建的,但我们也有第三方 javascript 库可以使用 bower 拉下来,而这些具有插件文件夹的库会导致问题(例如,我们使用拥有自己插件的 Durandaljs文件夹)

Also, if I update the name of the "plugins" folder to be uppercase "Plugins" - then there will be no issues and the folder and the files within will be sent to the Mac / remotebuild for building :P This works if there are only 1 or 2 plugins folder that I have created myself, but we also have third party javascript libraries that gets pulled down using bower, and these libraries that have plugins folder will cause issues (e.g. we use Durandaljs which have its own plugins folder too)

我已按照说明使用此链接将 remotebuild 安装到我的 Mac - https://msdn.microsoft.com/library/dn757054(v=vs.140).aspx#ios

I have followed the instructions to install remotebuild onto my Mac using this link - https://msdn.microsoft.com/library/dn757054(v=vs.140).aspx#ios

提前致谢.

推荐答案

感谢您使用我们的 Apache Cordova VS 工具并报告问题.这是 remotebuild 工作方式的合法问题,我们将在下一个版本(即将发布)中修复此问题.请留意 npm for remotebuild 上的发布.在此之前,请通过将插件"文件夹重命名为其他内容来解决该问题.

Thanks for using our VS tools for Apache Cordova and reporting the issue. Its a legitimate issue with the way remotebuild works and we fixing this issue in our next release (which will be soon out). Look out for the release on the npm for remotebuild. Till then please workaround the issue by renaming the "plugins" folder to something else.

谢谢,浸泡.

这篇关于适用于 Apache Cordova 的 Visual Studio 工具 - iOS 远程构建 - 省略“插件"www 内的文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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