cordova-plugin-console doesn't support this project's cordova-ios version - ios

I have upgraded my environment from ionic 1 to ionic 3.19.1. However, my project is still ionic v1 (or if im not mistaken below v1, not sure)
I ran the command
ionic cordova build ios --v1
and there is this failure.
Discovered plugin "cordova-plugin-console" in config.xml. Adding it to the project
Installing "cordova-plugin-console" for ios
Plugin doesn't support this project's cordova-ios version. cordova-ios: 4.5.4, failed version requirement: <4.5.0
Skipping 'cordova-plugin-console' for ios
what does it mean and how to resolve it?
My environment is below:
ionic version 3.19.1
cordova version 8.0.0
npm version 5.6.0
macos High Sierra 10.13.1
xcode 9.2

You simply need to uninstall cordova-plugin-console.
Check cordova-ios 4.5.0 release here.
Important! If you have included cordova-plugin-console in your project, you must remove it, otherwise your project will not build.
It is now integrated into cordova-ios platform(4.5.0 onwards).
Your current version is cordova-ios: 4.5.4 according to the error message.
Here is the issue tracker of integration into cordova-ios.
Do:
ionic cordova plugin remove cordova-plugin-console

Related

cordova-hot-code-push-plugin in mac error

I use cordova-hot-code-push-plugin to realize hot code push, and it's okay on android, but there is error on ios when using command cordova run ios as following:
CHCP plugin after prepare hook:
Failed to load iOS project file. Maybe your Cordova version is not supported?
the versions I use:
cordova 11.0.0
cordova-ios 6.2.0
Xcode 13.3
Build version 13E113
thx for any suggestions!

Ionic "Seems to be a very old project file format - please open your project file in a more recent version of Xcode"

fastlane finished with errors relating to automatic_code_signing. I’m not sure what this means and how to fix it, but it’s an error I hadn’t gotten before. I’m on Ionic v3
This has to do with the iOS platform not being up to date.
iOS builds including cordova-ios v4.5.5 or earlier will fail with this error in Appflow. This issue was corrected in cordova-ios v5.0.0. Updating to a current cordova-ios release will resolve the problem.
To remove and reinstall the iOS platform:
ionic cordova platform rm ios
ionic cordova platform add ios#5.1.1 //the latest release of the current major version is recommended.
This
example specifies the latest version at the time of writing
Source here

Cordova ios -Your ios platform does not have Api.js in old project

When we run cordova plugin add cordova-plugin-inappbrowser
command ,I have got error "Your ios platform does not have Api.js". Because I have a old project in ios cordova.
Is the any way to add plugin manually.
You should update the cordova-ios version of your project or downgrade the Cordova CLI to use an older version that included the cordova-ios version you have in the project.
You can also try to install the plugins with --nofetch param at the end.

Update phonegap cordova version

I am trying to update the latest cordova version to my project. I did run the below command:
$ sudo npm update -g cordova
after running this command, I checked and using cordova info command I can see that I have the latest version of cordova
Node version: v0.12.2
Cordova version: 5.3.1
Config.xml file:
However, when I go to the platform folder and ran
cordova platform version ios
The results is showing that I am still in the older version.
Installed platforms: ios 3.9.1
Available platforms: amazon-fireos, android, blackberry10, browser, firefoxos, osx, webos
I tried using the cordova platform update but I am getting an error, see below. Am I missing anything?
cordova platform update ios#5.3.1
Failed to fetch platform ios#5.3.1
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: version not found: cordova-ios#5.3.1
The various parts or cordova (cli, platforms, plugins) all move and release independently, which means they all can and will have different version numbers. For example the current release of the cordova-ios platform is 3.9.1 and the current release of android is 4.1.1. You can see what platforms are available by running
cordova platform list
You can see all published versions for a given platform via npm
npm view cordova-{platform} versions
replacing {platform} with anything given by the list command above.
Hope this helps!

Why I am not able to update to the lastest iOS Cordova Platform?

I need to update my iOS app created with Cordova to last version but something is not clear:
cordova -v
returns: "4.2.0"
cordova platform list
returns: "Installed platforms: ios 3.7.0"
If i try to run:
cordova platform update ios
I get: "iOS project is now at version 3.7.0"
If i try to run:
cordova platform add ios#4.0
I get:
Error: No compatible version found: cordova-ios#'>=4.0.0-0 <4.1.0-0'
Valid install targets:
["3.5.0","3.6.0","3.6.1","3.6.3","3.7.0"]
so, what is the last platform available for iOS? 3.7.0?
Why Cordova gives instructions on how to update to 4.0.0 then? (Upgrading iOS)
Thank you!
Well, It looks a bit confusing but the version of the Cordova CLI does not necessarily follows the versions of the platforms.
As you can see here:
Cordova CLI last version is 4.3.0 => Cordova CLI
iOS Platform last version is 3.8.0 => Cordova iOS Platform
Android Platform last version is 3.7.1 => Cordova Android Platform
The issue is that there is now fragmentation in Cordova versions. 4.2.0 is the Cordova CLI version.
As the Valid Install Targets suggests, 3.7.0 is the latest iOS version of Cordova.

Resources