Skip to content

[firebase_core]: swift package manager version mismatch #18088

Description

@frederikstonge

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Core

Which platforms are affected?

iOS

Description

I have updated all my packages to the latest version and this happens when I build my app :

xcodebuild: error: Could not resolve package dependencies:
Failed to resolve dependencies Dependencies could not be resolved because 'firebase_core' depends on 'flutterfire' 4.4.0-firebase-core-swift and 'firebase_analytics' depends on 'flutterfire' 4.5.0-firebase-core-swift.

Reproducing the issue

Build an ios app with switch package manager enabled and with both firebase_analytics and firebase_core as packages.

Firebase Core version

4.5.0

Flutter Version

3.41.4

Relevant Log Output

Error: Unable to get Xcode project information:
 2026-03-06 08:53:24.187 xcodebuild[78908:12709933] Writing error result bundle to /var/folders/_5/s0fnddx52xd36pj62l8cnyhj8q41tn/T/ResultBundle_2026-06-03_08-53-0024.xcresult
xcodebuild: error: Could not resolve package dependencies:
  Failed to resolve dependencies Dependencies could not be resolved because 'firebase_core' depends on 'flutterfire' 4.4.0-firebase-core-swift and 'firebase_analytics' depends on 'flutterfire' 4.5.0-firebase-core-swift.

Flutter dependencies

Expand Flutter dependencies snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs AttentionThis issue needs maintainer attention.type: bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions