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

bug: Cannot upgrade @capacitor-firebase/analytics to version 7.0.0 #833

Closed
5 of 17 tasks
tobiashill opened this issue Feb 24, 2025 · 2 comments
Closed
5 of 17 tasks
Labels

Comments

@tobiashill
Copy link

Plugin(s)

  • Analytics
  • App
  • App Check
  • Authentication
  • Crashlytics
  • Cloud Firestore
  • Cloud Functions
  • Cloud Messaging
  • Cloud Storage
  • Performance
  • Remote Config

Version

7.0.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

I am trying to lift my capacitor codebase to 7.0.0 (I am following the guide on the capacitor website (https://capacitorjs.com/docs/updating/7-0)) but have troubles with the @capacitor-firebase/analytics plugin (and possibly other @capacitor-firebase-ones too but this is the first that hits the error).

It seems to require a version of FirebaseAnalytics for iOS that is not found or fetched ... or possibly in conflict.

[error] Analyzing dependencies
        [!] CocoaPods could not find compatible versions for pod "FirebaseAnalytics":
        In snapshot (Podfile.lock):
        FirebaseAnalytics (= 11.4.0, ~> 11.0)
        
        In Podfile:
        CapacitorFirebaseAnalytics/Analytics (from `../../node_modules/@capacitor-firebase/analytics`) was resolved to
        7.0.0, which depends on
        FirebaseAnalytics (~> 11.7.0)
        
        
        You have either:
        * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
        * changed the constraints of dependency `FirebaseAnalytics` inside your development pod
        `CapacitorFirebaseAnalytics/Analytics`.
        You should run `pod update FirebaseAnalytics` to apply changes you've made.

npm install works fine.
The error above happens when I do npm run build && npx cap sync

My dependencies in package.json looks like this:

  "dependencies": {
    "@babel/runtime": "^7.26.9",
    "@capacitor-firebase/analytics": "^7.0.0",
    "@capacitor-firebase/app-check": "^7.0.0",
    "@capacitor-firebase/messaging": "^7.0.0",
    "@capacitor/app": "^7.0.0",
    "@capacitor/core": "^7.0.0",
    "@capacitor/device": "^7.0.0",
    "@capacitor/haptics": "^7.0.0",
    "@capacitor/ios": "^7.0.0",
    "@capacitor/network": "^7.0.0",
    "@capacitor/preferences": "^7.0.0",
    "@capacitor/splash-screen": "^7.0.0",
    "@capgo/native-audio": "^7.3.0",
    "@trapezedev/configure": "^7.1.3",
    "brotli-compress": "^1.3.3",
    "camera-controls": "^2.10.0",
    "capacitor-plugin-safe-area": "^4.0.0",
    "contactjs": "^2.1.7",
    "cordova-plugin-purchase": "^13.12.1",
    "farmhash-modern": "^1.1.0",
    "firebase": "^11.2.0",
    "gsap": "^3.12.7",
    "lil-gui": "^0.20.0",
    "material-symbols": "^0.28.2",
    "postprocessing": "^6.36.7",
    "safe-stable-stringify": "^2.5.0",
    "seedrandom": "^3.0.5",
    "three": "^0.173.0",
    "three-nebula": "^10.0.3",
    "typesafe-i18n": "^5.26.2",
    "vite-plugin-handlebars": "^2.0.0"
  },

What am I doing wrong here?

Does @capacitor-firebase/analytics require some additional measures when upgrading?

Expected behavior

``

Reproduction

n/a

Steps to reproduce

  • With my package file,
  • Do npm install,
  • Then sync to xcode.
  • Should (likely) break

Other information

No response

Capacitor doctor

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 7.0.1
@capacitor/core: 7.0.1
@capacitor/android: 7.0.1
@capacitor/ios: 7.0.1

Installed Dependencies:

@capacitor/android: not installed
@capacitor/core: 7.0.1
@capacitor/cli: 7.0.1
@capacitor/ios: 7.0.1

[success] iOS looking great! 👌

Before submitting

  • I have read and followed the bug report guidelines.
  • I have attached links to possibly related issues and discussions.
  • I understand that incomplete issues (e.g. without reproduction) are closed.
@tobiashill tobiashill added bug/fix Something isn't working needs: triage labels Feb 24, 2025
@tobiashill
Copy link
Author

Thanks a lot! I got it working!

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

No branches or pull requests

2 participants