I've seen a lot of posts related to similar errors, have tried all of the suggestions, but still no joy! Can someone explain the reason for this (apparently common) Cocoapod error when trying to install an ionic cordova plugin? (seems it's not specific to any one plugin, this same error pops up for lots of them). What is the process to troubleshoot this and what is the likely cause?
ionic cordova plugin add cordova-plugin-firebase-authentication
> cordova plugin add cordova-plugin-firebase-authentication
Installing "cordova-plugin-firebase-authentication" for ios
Running command: pod install --verbose
Failed to install 'cordova-plugin-firebase-authentication': Error: pod: Command failed with exit code 1
at ChildProcess.whenDone (/Users/mike/Documents/APPNAME/node_modules/cordova-common/src/superspawn.js:135:23)
at ChildProcess.emit (events.js:311:20)
at maybeClose (internal/child_process.js:1021:16)
at Socket.<anonymous> (internal/child_process.js:443:11)
at Socket.emit (events.js:311:20)
at Pipe.<anonymous> (net.js:668:12)
pod: Command failed with exit code 1
[ERROR] An error occurred while running subprocess cordova.
cordova plugin add cordova-plugin-firebase-authentication exited with exit code 1.
I have tried the various suggestions:
gem install cocoapods
pod repo update
And I'm using the .xcworkspace file not the .xcodeproj file for xCode.
Help appreciated!!!