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!
Related
I am building flutter app with Passbase integration. I have followed all steps from here: https://docs.passbase.com/flutter and in Android it works fine. However in iOS app is not building. VSCode shows this:
Xcode build done. 11.9s
Failed to build iOS app
Error output from Xcode build:
↳
Exited (sigterm)
Could not build the precompiled application for the device.
Error launching application on iPhone.
And Xcode shows this:
Maybe it is because I run latest flutter version 1.20.4 and Passbase says that they have tested it with 1.17.5...
Any ideas what to do?
If you are using Passbase plugin version 1.9.5, you need to use Xcode 12.0. Or use plugin version 1.9.4 instead. The only change between these versions is that 1.9.5 was built using Xcode 12.0.
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
Getting "No target specified for emulator. Deploying to undefined simulator Device type "com.apple.CoreSimulator.SimDeviceType.undefined" could not be found." error while running Phonegap project using XCode 9/iOS 11. Has anyone got workaround?
Update cordova to 4.5.0
cordova plugin save
npm install -g cordova
cordova platform rm ios
cordova platform add ios#4.5.0
cordova plugin remove cordova-plugin-console
Yes… cordova plugin console is now deprecated and needs to be removed. You will get here the details
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.
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.