Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
5 tasks done
mehmetkaynak opened this issue Aug 11, 2023 · 4 comments
Open
5 tasks done

Comments

@mehmetkaynak
Copy link

mehmetkaynak commented Aug 11, 2023

Bug report

CHECKLIST

  • I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
  • 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 -v 12.0.0 (cordova-lib@12.0.1)
  • 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)



@NguyenTaiAnh
Copy link

you try again step by step

ionic cordova plugin add cordova-plugin-firebasex —force

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

@dpa99c
Copy link
Owner

dpa99c commented Dec 20, 2023

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
Copy link

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
Copy link

minduch commented Oct 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants