question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error install iOS platform / Error: pod: Command failed with exit code 1

See original GitHub issue

cordova plugin add cordova-plugin-firebase-analytics --save, fails on ios

cordova-> 8.1.2 (cordova-lib@8.1.1) cocoapods -> 1.6.1

And the pod repo update updated.

Any ideas how to fix it?

 cordova plugin add cordova-plugin-firebase-analytics --save
Installing "cordova-plugin-firebase-analytics" for android
Plugin dependency "cordova-support-android-plugin@1.0.1" already fetched, using that version.
Installing "cordova-support-android-plugin" for android
Android Studio project detected
Plugin dependency "cordova-support-google-services@1.3.1" already fetched, using that version.
Dependent plugin "cordova-support-google-services" already installed on android.
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-firebase-analytics" for ios
Failed to install 'cordova-plugin-firebase-analytics': Error: pod: Command failed with exit code 1
    at ChildProcess.whenDone (/Users/addo/jobs/personal/pushpromo/platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at ChildProcess.emit (events.js:188:13)
    at maybeClose (internal/child_process.js:978:16)
    at Socket.stream.socket.on (internal/child_process.js:395:11)
    at Socket.emit (events.js:188:13)
    at Pipe._handle.close (net.js:610:12)
pod: Command failed with exit code 1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:13

github_iconTop GitHub Comments

1reaction
bijanmmarkescommented, Dec 22, 2019

pod repo update fixed this type of issue for me.

1reaction
xinfengmichcommented, May 8, 2019

@saberprashant Thanks for your information. I had to usecordova-plugin-firebase-analytics@0.12.0 instead due to the firebase version conflict within phonegap-plugin-push@2.2.3.

$ cordova plugin add cordova-plugin-firebase-analytics@0.12.0 --variable FIREBASE_CORE_VERSION=12.0.1 --force

For Push Notification on iOS, since we still use use apns, so I followed https://github.com/phonegap/phonegap-plugin-push/issues/2112 to change the value of the key IS_GCM_ENABLED to false in GoogleService-Info.plist. Then Push Notification worked on both iOS and Android.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: pod: Command failed with exit code 1 using Cordova
I made a mistake in podspec name... Changed fmdb to FMDB to solved it. Usually, when you get Failed to install ...
Read more >
Cordova SDK Troubleshooting - Visual Studio App Center
Cordova SDK Troubleshooting · Failed to install plugin - pod command failed with exit code 1 · Failed to install 'cordova-plugin-appcenter-shared ...
Read more >
Error: Failed with Exit Code 1 | Apple Developer Forums
It could be in my Code Signing Identity. Target is all 'iOS Developer'. Project is all iPhone Distribution: "Project Owner". Code Signing is...
Read more >
Phonegap push plugin Error pod Command failed with exit ...
... "phonegap-plugin-push" for ios Failed to install 'phonegap-plugin-push': Error : pod : Command failed with exit code 1 at ChildProcess.
Read more >
Failed to install 'cordova-plugin-facebook4': Error: pod
Failed to install 'cordova-plugin-facebook4': Error: pod: Command failed with exit code 1 · Describe the Bug of feature request · Expected ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found