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.

Cordova plugin add admob-plus-cordova failed - Command failed with exit code 31

See original GitHub issue

Bug Description

I try to build a new version of my game, but now if I start my script I get an error while adding admob-plus-cordova and cordova-plugin-consent

Failed to install 'admob-plus-cordova': Error: pod: Command failed with exit code 31 at ChildProcess.whenDone (Mls/GameClientHtml2/cordova-ios-test/node_modules/cordova-common/src/superspawn.js:136:25) at ChildProcess.emit (events.js:315:20) at maybeClose (internal/child_process.js:1021:16) at Socket.<anonymous> (internal/child_process.js:443:11) at Socket.emit (events.js:315:20) at Pipe.<anonymous> (net.js:674:12) pod: Command failed with exit code 31

How to reproduce

1.) Create new cordova project: cordova create <dir> <bundleid> <name> 2.) Add iOS target cordova platform add ios 3.) add admit plus plugin: cordova plugin add admob-plus-cordova --save --variable APP_ID_IOS=<admobid> 4.) cordova plugin add cordova-plugin-consent

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
EYALINcommented, Jul 14, 2021

@YBurkhardt you just need to update “pod” they had an update that breaks this plugin.

run the following inside your IOS folder “pod install”

0reactions
stale[bot]commented, Jan 8, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS- Error: pod: Command failed with exit code 31 #49 - GitHub
Hi all, my project has build right on Android but in iOS there is a problem: Failed to install 'cordova-admob-plus': Error: pod: Command...
Read more >
Cordova App - IOS build failed on Appflow, Failed to install ...
Cordova App - IOS build failed on Appflow, Failed to install 'onesignal-cordova-plugin': Error: pod: Command failed with exit code 31 · ios ...
Read more >
Failed to install 'onesignal-cordova-plugin': Error: pod
Installing "onesignal-cordova-plugin" for ios Failed to install 'onesignal-cordova-plugin': Error: pod: Command failed with exit code 31 at ...
Read more >
Cordova SDK Troubleshooting - Visual Studio App Center
Failed to install plugin - pod command failed with exit code 1. After updating to the latest plugin version, chances are you'll see...
Read more >
Troubleshooting Cordova Variants - OneSignal Documentation
ionic cordova plugin add onesignal-cordova-plugin. Capacitor Users, run: ... to try adding it again. Error: Error: pod: Command failed with exit code 31....
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