如何在Visual Studio 2015 Cordova项目中更新cordova-ios版本? [英] how to update cordova-ios version in visual studio 2015 cordova project?

查看:99
本文介绍了如何在Visual Studio 2015 Cordova项目中更新cordova-ios版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Visual Studio 2015中使用Cordova模板开发ios应用. 我已经按照此链接中的说明配置了Mac book. "rel ="nofollow noreferrer"> https://taco.visualstudio.com/en-us/docs/ios-guide/#run-your-app-in-an-ios-simulator . 安装的xcode版本是8.3. 当我尝试在ios模拟器中运行应用程序时,出现以下错误.因此,如何解决此问题,请帮忙.谢谢.

I'm developing ios app using cordova template in visual studio 2015. I have configured mac book as described in this link .https://taco.visualstudio.com/en-us/docs/ios-guide/#run-your-app-in-an-ios-simulator. Installed xcode version is 8.3. when i try to run app in an ios simulator , getting following error. so, how to fix this, please help .thanks.

错误:来自构建服务器的远程构建错误生成失败,并显示错误Remotebuild要求您的项目使用带有XCode 8.3的cordova-ios 4.3.0或更高版本.请更新您的cordova-ios版本.

Error: Remote build error from the build server Build failed with error Remotebuild requires your projects to use cordova-ios 4.3.0 or greater with XCode 8.3. Please update your cordova-ios version.

推荐答案

来自

From this link you can see how to update cordova:

npm update -g cordova

下一个链接上,您可以查找有关ios cordova更新的说明.基本上,它只是删除ios平台,然后再次将其添加回以Cordova 4.x版本构建的项目中:

On next link you can find instructions for ios cordova update. Basically its just removing ios platform and adding it back again for projects built with Cordova 4.x version:

cordova platform rm ios
cordova platform add ios

对于较旧的版本,请使用:

For older versions use:

cordova platform update ios

这篇关于如何在Visual Studio 2015 Cordova项目中更新cordova-ios版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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