用于Apache Cordova / Visual Studio 2015的工具无法在IOS模拟器中启动应用程序 [英] Tools for Apache Cordova/Visual Studio 2015 fails to launch app in IOS simulator

查看:230
本文介绍了用于Apache Cordova / Visual Studio 2015的工具无法在IOS模拟器中启动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在IOS模拟器上使用MacInCloud和remotebuild测试我的应用程序。一切都很好,应用程序使用remotebuild编译。然后,Visual Studio将显示已成功部署状态。当我查看我的Mac时,它显示已启动的IOS模拟器,但仅显示主屏幕。我根本看不到我的应用程序。我不知道接下来要检查什么。任何帮助将不胜感激。

Im trying to test my app using MacInCloud and remotebuild on the IOS simulator. Everything works great and the app compiles using remotebuild. Visual Studio then displays a status "Deployed Successfully". When I look on my mac, it shows the IOS simulator launched but only shows the home screen. I do not see my app at all. Im at a loss on what to check next. Any help would be appreciated.

我在输出窗口中看到此错误。

I see this error in the output window.


在iOS模拟器上为服务器上的buildNumber 89952请求模拟 https://74.xx.xx.xxx :3000 / cordova ...
无法为构建C启动iOS远程:\ Users \md \documents \ visual studio 2015 \Projects\app2 \ app2 \ bld \ios\Release\buildInfo.json https://74.xx.xx.xxx :3000 / cordova 用于部署目标iPhone 5S:
Http 404:{command:build,vcordova:5.3.3等。

Requesting emulate on iOS Simulator for buildNumber 89952 on server https://74.xx.xx.xxx:3000/cordova... Failed to launch iOS remote for build C:\Users\md\documents\visual studio 2015\Projects\app2\app2\bld\ios\Release\buildInfo.json to https://74.xx.xx.xxx:3000/cordova for deploy target iPhone 5S: Http 404: {"command":"build","vcordova":"5.3.3", etc..

我注意到有关BuildInfo.Json文件的一件事是我的很多图像文件都是changedFiles,即使我没有更改它们。我想知道changedFiles字段是否太大而无法处理。我不知道为什么它说http 404错误..

One thing I notice about the BuildInfo.Json file is puts a lot of my image files as "changedFiles" even though I havent changed them. Im wondering if the "changedFiles" field is too big to process. Im not sure why it says http 404 error..

推荐答案

这可能是ios-sim的一个问题。我们将很快发布一个针对该问题的修补程序的更新版本,但您可以在短期内尝试解决方法。

This may be an issue with ios-sim. We'll be publishing an updated version with a fix for that issue shortly, but you may be able to try a workaround in the short term.

在Mac上,转到到〜/ .taco_home / node_modules / taco-remote-lib /< VERSION> / node_modules / taco-remote-lib / 并运行 npm uninstall ios-sim&& npm install ios-sim@5.0.4 。对于 VERSION ,如果您使用早于5.4.0的cordova,则需要使用最新的1.X;如果您使用的是较新的版本,则需要使用最新的2.X. of cordova。

On the mac, go to ~/.taco_home/node_modules/taco-remote-lib/<VERSION>/node_modules/taco-remote-lib/ and run npm uninstall ios-sim && npm install ios-sim@5.0.4. For the VERSION, you want to use the latest 1.X if you are using cordova earlier than 5.4.0, and the latest 2.X if you are using a newer version of cordova.

部署报告成功的原因是我们使用ios-sim同时进行部署和启动,因此部署步骤是否定的-op用于iOS模拟器。

The reason that the deployment is reported as successful is that we use ios-sim for deploying and launching at the same time, so the deploy step is a no-op for the iOS simulator.

这篇关于用于Apache Cordova / Visual Studio 2015的工具无法在IOS模拟器中启动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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