简体   繁体   中英

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

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM