how to update cordova-ios version in visual studio 2015 cordova project?

Viewed 4184

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.

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.

3 Answers

This is what worked for me in Visual Studio 2017 Community Edition.

1) Delete the platforms / ios folder in the root folder of your project

2) In the platforms folder, edit the platforms.json file manually with the version you want, in my case it was:

{
"android": "5.2.1",
"ios": "4.3.0"
}

3) Update your config.xml file in your project like so:

  <engine name="ios" spec="4.3.0" />

4) Run your project.

Related