dpa99c / cordova-plugin-firebasex

Cordova plugin for Google Firebase
MIT License
573 stars 470 forks source link

Failed to install 'cordova-plugin-firebasex': Error: pod: Command failed with exit code 1 #823

Open mehmetkaynak opened 1 year ago

mehmetkaynak commented 1 year ago

Bug report

CHECKLIST

Current behavior:

i can't install this plugin after the update. i tried versions of this plugin (15.0.0 - 16.0.0 and 16.1.0) i get always same issue. when i try the repo install on platforms/ios folder i get this error

CocoaPods could not find compatible versions for pod "GTMSessionFetcher/Core": In snapshot (Podfile.lock): GTMSessionFetcher/Core (= 1.7.2, ~> 1.1)

In Podfile: Firebase/Functions (= 10.2.0) was resolved to 10.2.0, which depends on FirebaseFunctions (~> 10.2.0) was resolved to 10.2.0, which depends on GTMSessionFetcher/Core (< 4.0, >= 2.1)

GoogleMobileVision/BarcodeDetector (~> 1.1) was resolved to 1.6.0, which depends on
  GoogleMobileVision/Detector (= 1.6.0) was resolved to 1.6.0, which depends on
    GTMSessionFetcher/Core (~> 1.1)

GoogleSignIn (= 6.2.4) was resolved to 6.2.4, which depends on
  GTMSessionFetcher/Core (< 3.0, >= 1.1)

Environment information

Runtime issue

Android build issue:

iOS build issue:

Console output

console output ``` Installing "cordova-plugin-firebasex" for ios Running command: pod install --verbose Failed to install 'cordova-plugin-firebasex': Error: pod: Command failed with exit code 1 at ChildProcess.whenDone (/Users/user/project/node_modules/cordova-common/src/superspawn.js:136:25) at ChildProcess.emit (node:events:514:28) at maybeClose (node:internal/child_process:1091:16) at Socket. (node:internal/child_process:449:11) at Socket.emit (node:events:514:28) at Pipe. (node:net:323:12) ```


NguyenTaiAnh commented 1 year ago

you try again step by step

ionic cordova plugin add cordova-plugin-firebasex —force

npm install @ionic-native/firebase-x --force

dpa99c commented 11 months ago

Looks like the cordova-gmv-barcode-scanner is requesting a pod which depends on a different version of GTMSessionFetcher pod than the version of the GoogleSignIn pod requested by this plugin.

Use the IOS_GOOGLE_SIGIN_VERSION plugin variable to specify which version of the GoogleSignIn pod this plugin will request in order to align the GTMSessionFetcher pod version with the other plugin.

Build the example project to validate your build enviroment and confirm this plugin builds correctly in isolation.

franfr57 commented 1 month ago

Looks like the cordova-gmv-barcode-scanner is requesting a pod which depends on a different version of GTMSessionFetcher pod than the version of the GoogleSignIn pod requested by this plugin.

Use the IOS_GOOGLE_SIGIN_VERSION plugin variable to specify which version of the GoogleSignIn pod this plugin will request in order to align the GTMSessionFetcher pod version with the other plugin.

Build the example project to validate your build enviroment and confirm this plugin builds correctly in isolation.

I try install with this command : cordova plugin add cordova-plugin-firebasex --variable IOS_GOOGLE_SIGIN_VERSION=6.1.0 but in Podfile, I have : pod 'GoogleSignIn, '6.2.4'

How can I ensure that the variable is correctly taken into account during installation?

minduch commented 1 month ago

I think you misspelled the variable IOS_GOOGLE_SIGIN_VERSION, it should read “IOS_GOOGLE_SIGNIN_VERSION”.

From: franfr57 @.> Sent: Wednesday, October 16, 2024 08:52 To: dpa99c/cordova-plugin-firebasex @.> Cc: Subscribed @.***> Subject: Re: [dpa99c/cordova-plugin-firebasex] Failed to install 'cordova-plugin-firebasex': Error: pod: Command failed with exit code 1 (Issue #823)

Looks like the cordova-gmv-barcode-scanner is requesting a pod which depends on a different version of GTMSessionFetcher pod than the version of the GoogleSignIn pod requested by this plugin.

Use the IOS_GOOGLE_SIGIN_VERSION plugin variablehttps://github.com/dpa99c/cordova-plugin-firebasex?tab=readme-ov-file#plugin-variables to specify which version of the GoogleSignIn pod this plugin will request in order to align the GTMSessionFetcher pod version with the other plugin.

Build the example projecthttps://github.com/dpa99c/cordova-plugin-firebasex to validate your build enviroment and confirm this plugin builds correctly in isolation.

I try install with this command : cordova plugin add cordova-plugin-firebasex --variable IOS_GOOGLE_SIGIN_VERSION=6.1.0 but in Podfile, I have : pod 'GoogleSignIn, '6.2.4'

How can I ensure that the variable is correctly taken into account during installation?

— Reply to this email directly, view it on GitHubhttps://github.com/dpa99c/cordova-plugin-firebasex/issues/823#issuecomment-2415885675, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGXD5VUS5AMV5JPSQK4PLCLZ3YEKPAVCNFSM6AAAAABQAW6RYCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJVHA4DKNRXGU. You are receiving this because you are subscribed to this thread.Message ID: @.***>