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!
Related
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
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
My problem is
Severity Code Description Project File Line Suppression State
Error Remote build error from the build server http://xxxxxx:3000/cordova - Derleme, Command to fetch XCode version failed. Your build may fail if the version installed is 8.0 or greater.
My Version:
Xcode version 7.2
Cordova version 6.3.1
Node 4.4.3
Npm 2.15
Cordova android 5.2.1
Cordova iOS 4.2.0
I had same issue previously, and I resolved it by go to my mac and accept the license agreement of xcode.
Run this in terminal : sudo xcodebuild -license and then type agree.
I'm working on a Cordova app in Visual Studio 2015.
I tried to add the iOS platform to cordova by running this in cmd
C:\cordovaProjectDirectory > cordova platform add iOS
this is the error I get
cocoapods error.jpg
I have been trying to get push notifications to work on my iOS device via remote build and I suspect this might be causing the problem.
Android device is working fine
What I have tried :
removing and installing phonegap-push-plugin
removing and installing ios platform
deleting platform/ios folder and clearing cordova cache
create empty project and run same cmds
Some info :
cordova cli 6.3.1
phonegap-push-plugin 1.9.2
node 5.6.0
npm 3.6.0
Alot of the solutions I see for installing Cocoapods are for MAC Terminal.
I have no idea what I'm missing or doing wrong.
Any advice is greatly appreciated!
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.