I’m trying to update iOS and Android in Cordova but I always get an error. Does anyone know anything about it?
IOS error
Updating ios in your Cordova Site …
Using cordova-fetch for cordova-ios@~4.5.4
Updating ios project…
(node:3850) UnhandledPromiseRejectionWarning: An in-place platform update is not supported.
The platforms
folder is always treated as a build artifact.
To update your platform, you have to remove, then add your ios platform again.
Make sure you save your plugins beforehand using cordova plugin save
, and save a copy of the platform first if you had manual changes in it.
cordova plugin save
cordova platform rm ios
cordova platform add ios
(node:3850) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3850) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Error updating ios in your Cordova Site!
ANDROID error
Using cordova-fetch for cordova-android@~7.0.0
Updating android project…
(node:3879) UnhandledPromiseRejectionWarning: An in-place platform update is not supported.
The platforms
folder is always treated as a build artifact in the CLI workflow.
To update your platform, you have to remove, then add your android platform again.
Make sure you save your plugins beforehand using cordova plugin save
, and save
a copy of the platform first if you had manual changes in it.
cordova plugin save
cordova platform rm android
cordova platform add android
(node:3879) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3879) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Error updating android in your Cordova Site!