cordova-plugin-firebasex icon indicating copy to clipboard operation
cordova-plugin-firebasex copied to clipboard

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

Open mehmetkaynak opened this issue 1 year ago • 2 comments

Bug report

CHECKLIST

  • [x] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
  • [x] I have checked that no similar issues (open or closed) already exist.

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

  • Cordova CLI version

  • Cordova platform version

    • cordova platform ls ios 6.3.0
  • Plugins & versions installed in project (including this plugin)

    • cordova plugin ls cordova-background-geolocation-lt 4.9.3 "BackgroundGeolocation" cordova-gmv-barcode-scanner 1.3 "cordova-gmv-barcode-scanner" cordova-open-native-settings 1.5.5 "Native settings" cordova-plugin-3dtouch 1.3.8 "3D Touch" cordova-plugin-add-swift-support 2.0.2 "AddSwiftSupport" cordova-plugin-androidx-adapter 1.1.3 "cordova-plugin-androidx-adapter" cordova-plugin-androidx 3.0.0 "cordova-plugin-androidx" cordova-plugin-app-version 0.1.14 "AppVersion" cordova-plugin-background-fetch 7.1.2 "CDVBackgroundFetch" cordova-plugin-bluetooth-peripheral-usage-description 1.0.1 "Bluetooth Peripheral Usage Description" cordova-plugin-bluetoothle 6.6.2 "Bluetooth LE" cordova-plugin-camera 6.0.0 "Camera" cordova-plugin-device 2.1.0 "Device" cordova-plugin-doze-optimize 0.1.3 "DozeOptimize" cordova-plugin-file-transfer 2.0.0-dev "File Transfer" cordova-plugin-file 8.0.0 "File" cordova-plugin-firebasex 15.0.0 "Google Firebase Plugin" cordova-plugin-inappbrowser 5.0.0 "InAppBrowser" cordova-plugin-power-optimization 0.0.3 "PowerOptimization" cordova-plugin-preview-any-file 0.2.9 "Preview Any File" cordova-plugin-speechrecognition 1.1.2 "Speech Recognition" cordova-plugin-wkwebview-engine 1.2.2 "Cordova WKWebView Engine" cordova-plugin-wkwebview-file-xhr 3.1.0 "Cordova WKWebView File XHR Plugin" cordova-plugin-wkwebview-inject-cookie 1.0.2 "WKWebViewInjectCookie" cordova-plugin-x-socialsharing 6.0.4 "SocialSharing" cordova.plugins.diagnostic 6.1.0 "Diagnostic" es6-promise-plugin 4.2.2 "Promise"
  • Dev machine OS and version, e.g.

    • OSX
      • sw_vers
    • macOs
      • 13.1 (22C65) -pod -v 1.12.1

Runtime issue

  • Device details
    • e.g. iPhone X, Samsung Galaxy S8, iPhone X Simulator, Pixel XL Emulator
  • OS details
    • e.g. iOS 12.2, Android 9.0

Android build issue:

  • Node JS version
    • node -v
  • Gradle version
    • ls platforms/android/.gradle
  • Target Android SDK version
    • android:targetSdkVersion in AndroidManifest.xml
  • Android SDK details
    • sdkmanager --list | sed -e '/Available Packages/q'

iOS build issue:

  • Node JS version

    • node -v v18.17.0
  • XCode version

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.<anonymous> (node:internal/child_process:449:11)
    at Socket.emit (node:events:514:28)
    at Pipe.<anonymous> (node:net:323:12)



mehmetkaynak avatar Aug 11 '23 14:08 mehmetkaynak

you try again step by step

ionic cordova plugin add cordova-plugin-firebasex —force

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

NguyenTaiAnh avatar Nov 21 '23 07:11 NguyenTaiAnh

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.

dpa99c avatar Dec 20 '23 10:12 dpa99c