Install custom version of the CLI in Visual Studio 2017

I need to make some updates for a Cordova application created using Visual Studio 2017 for Apache Cordova (TACO).

The Cordova CLI version specified in config.xml is 6.3.1, and the platform version cordova-iosis 4.2.0

When I try to build a project (using a Mac with Xcode 8.3.3, I get this error

Build Fails with Error Remote configuration requires that your projects use cordova-ios 4.3.0 or higher with Xcode 8.3. Update your version of cordova-ios.

I do not see updates for TACO in VS2017 or instructions in the Microsoft documentation for Apache Cordova Tools.

Ideally, I would like to do the most minor version update so that my work works with Xcode 8.3.3.

I know that there is a version of Cordoba 7.0.1, but I do not want to do this update just because I am under bullet time.

+4
source share
3 answers

I do not see updates for TACO in VS2017 or instructions in the Microsoft documentation for Apache Cordova Tools.

You can follow these steps to use the latest cordons:

  • Open config.xmlusing the constructor
  • Toolset-> Check the box Take latest patch(requires internet)for cordova-ios.

Update:

If you do not see this flag on the designer page, you need to change it in xml. Find the config.xmlfollowing tag in the tag:

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

and change it to:

<engine name="ios" spec="~4.2.0" />

Update2:

If the version still does not upgrade to the latest version, try the following steps to resolve the issue:

  • : - > - > Apache Cordova- > .
  • cmd ;
  • npm install -g cordova-ios -ios ( node, );
  • cordova platform rm ios;
  • cordova platform add ios;
+1

iOS iOS@4.3.1. , XCode 8.3.3

+1

, :

1- , Node

2- :

npm install -g cordova

3- taco-cli:

npm install -g taco-cli

4- taco-cli:

taco remote add ios

( , MAC IP, ..)

5- "taco.json", :

{
    "cordova-cli": "7.1.0"
}

7.1.0 cordova (cordova --v)

6- MAC:

taco emulate ios

, .

7- , Visual Studio

8- Visual Studio URL- config.xml

enter image description here

9- Visual Studio.

,

0

Source: https://habr.com/ru/post/1685620/


All Articles