Current behavior:
Fails on installation
Expected behavior:
Should install sucsessfully
Steps to reproduce:
cordova plugin add [email protected]
Environment information
9.0.0 ([email protected])ios 5.0.0cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport"
cordova-plugin-advanced-http 2.1.1 "Advanced HTTP plugin"
cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx"
cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter"
cordova-plugin-camera 4.1.0 "Camera"
cordova-plugin-chooser 1.2.5 "Chooser"
cordova-plugin-crop 0.3.1 "CropPlugin"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-filepath 1.5.6 "cordova-plugin-filepath"
cordova-plugin-firebasex 6.0.6 "Google Firebase Plugin"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 3.1.2 "cordova-plugin-ionic-webview"
cordova-plugin-nativestorage 2.3.2 "NativeStorage"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"ProductName: Mac OS X
ProductVersion: 10.14.6
BuildVersion: 18G87Console output
Installing "cordova-plugin-firebasex" for ios
Installing "cordova-plugin-androidx" for ios
Installing "cordova-plugin-androidx-adapter" for ios
Failed to install 'cordova-plugin-firebasex': undefined
CordovaError: Promise rejected with non-error: 'Version should contain only numbers and dots'
at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:29:15)
at process._tickCallback (internal/process/next_tick.js:68:7)
[ERROR] An error occurred while running subprocess cordova.
```
When i run platform add --verbose i get this:
Install start for "cordova-plugin-firebasex" on ios.
Beginning processing of action stack for ios project...
Action stack processing complete.
pods.json found in platforms/ios
Podfile found in platforms/ios
Adding pods since the plugin contained <podspecs>
Set pods.json fordeclarations-use_frameworks!
Added declaration line foruse_frameworks!
Set pods.json forsources-https://github.com/CocoaPods/Specs.git
Added source line forhttps://github.com/CocoaPods/Specs.git
Set pods.json forlibraries-Firebase/Core
Added pod line forFirebase/Core
Set pods.json forlibraries-Firebase/Auth
Added pod line forFirebase/Auth
Set pods.json forlibraries-Firebase/Messaging
Added pod line forFirebase/Messaging
Set pods.json forlibraries-Firebase/Performance
Added pod line forFirebase/Performance
Set pods.json forlibraries-Firebase/RemoteConfig
Added pod line forFirebase/RemoteConfig
Set pods.json forlibraries-Fabric
Added pod line forFabric
Set pods.json forlibraries-Crashlytics
Added pod line forCrashlytics
Wrote to pods.json.
Wrote to Podfile.
Runningpod install` (to install plugins)
Failed to install 'cordova-plugin-firebasex': undefined
CordovaError: Promise rejected with non-error: 'Version should contain only numbers and dots'
at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:29:15)
at process._tickCallback (internal/process/next_tick.js:68:7)
[ERROR] An error occurred while running subprocess cordova.
cordova platform add ios --verbose exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
ionic:utils-process onBeforeExit handler: 'process.exit' received +0ms
ionic:utils-process onBeforeExit handler: running 1 functions +0ms
ionic:utils-process processExit: exiting (exit code: 1) +24ms`
When downgrading to pods 1.7.5 the issue disappears
When downgrading to pods 1.7.5 the issue disappears
have a same issue. How do you do a downgrade it?
Resolved:
sudo gem uninstall cocoapods
sudo gem install cocoapods -v 1.7.5
pod repo update
What version of cocoapods caused you the issue?
I want to find the first version which causes it so I can document a maximum version requirement of cocoapods until this is properly resolved...
I just want to chip in, I have this error:
Install start for "cordova-plugin-firebasex" on ios.
Beginning processing of action stack for ios project...
Action stack processing complete.
pods.json found in platforms/ios
Podfile found in platforms/ios
Adding pods since the plugin contained <podspecs>
Set pods.json for `declarations` - `use_frameworks!`
Added declaration line for `use_frameworks!`
Set pods.json for `sources` - `https://github.com/CocoaPods/Specs.git`
Added source line for `https://github.com/CocoaPods/Specs.git`
Set pods.json for `libraries` - `Firebase/Core`
Added pod line for `Firebase/Core`
Set pods.json for `libraries` - `Firebase/Auth`
Added pod line for `Firebase/Auth`
Set pods.json for `libraries` - `Firebase/Messaging`
Added pod line for `Firebase/Messaging`
Set pods.json for `libraries` - `Firebase/Performance`
Added pod line for `Firebase/Performance`
Set pods.json for `libraries` - `Firebase/RemoteConfig`
Added pod line for `Firebase/RemoteConfig`
Set pods.json for `libraries` - `Fabric`
Added pod line for `Fabric`
Set pods.json for `libraries` - `Crashlytics`
Added pod line for `Crashlytics`
Wrote to pods.json.
Wrote to Podfile.
Running `pod install` (to install plugins)
Failed to install 'cordova-plugin-firebasex': undefined
CordovaError: Promise rejected with non-error: 'The CocoaPods repo has not been synced yet, this will take a long time (approximately 500MB as of Sept 2016). Please run `pod setup` first to sync the repo.'
at /usr/local/lib/node_modules/cordova/bin/cordova:29:15
at processTicksAndRejections (internal/process/task_queues.js:93:5)
EDIT:
After further research, cordova requirements kept saying I don't have cocoapods installed. I had it installed via homebrew but running pod setup did nothing for me.
As per a comment in this thread I went ahead and uninstall it via homebrew and try sudo gem install cocoapods -v 1.7.5 instead. Then pod setup worked and it fixed my issue.
Remove both the plugin and the iOS platform. Add the plugin, then add iOS platform back
The Cocoapods version issue appears to have been resolved by PR https://github.com/dpa99c/cordova-plugin-firebasex/pull/173.
Using [email protected] and [email protected], the Pods are installed successfully without error.
Try installing without using the sudo command
Most helpful comment
have a same issue. How do you do a downgrade it?Resolved:
sudo gem uninstall cocoapods
sudo gem install cocoapods -v 1.7.5
pod repo update