Build ios game error because of admob

Installing “cordova-plugin-consent” for ios
Running command: pod install --verbose
Failed to install ‘cordova-plugin-consent’: Error: pod: Command failed with exit code 1
at ChildProcess.whenDone (/Users/vagrant/git/baseApp/node_modules/cordova-common/src/superspawn.js:136:25)
at ChildProcess.emit (node:events:517:28)
at maybeClose (node:internal/child_process:1098:16)
at ChildProcess._handle.onexit (node:internal/child_process:303:5)
Failed to restore plugin “cordova-plugin-consent”. You might need to try adding it again. Error: Error: pod: Command failed with exit code 1