Tools for Apache Cordova/Visual Studio 2015 fails to launch app in IOS simulator

夙愿已清 提交于 2019-12-20 07:23:59

问题


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.

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..

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..


回答1:


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.

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.

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.



来源:https://stackoverflow.com/questions/35208495/tools-for-apache-cordova-visual-studio-2015-fails-to-launch-app-in-ios-simulator

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