Skip to content

bug: SPM identity collision between App Check plugin and firebase-ios-sdk transitive dependency #959

@ryellman

Description

@ryellman

Plugin(s)

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

Version

8.1.0

Platform(s)

  • Android
  • iOS
  • Web

Current behavior

Using @capacitor-firebase/app-check and @capacitor-firebase/authentication together fails to resolve SPM package dependencies on Xcode 26. The two plugins cannot be used simultaneously.
@capacitor-firebase/authentication depends on firebase-ios-sdk, which transitively pulls in github.com/google/app-check. SPM derives the identity app-check from both that remote package and the local @capacitor-firebase/app-check plugin directory. Xcode 26 now treats this as a hard error where previous versions only warned.

Expected behavior

Project builds successfully.

Reproduction

https://github.com/ryellman/capfire-spm-mre

Steps to reproduce

`mkdir capfire-mre && cd capfire-mre
pnpm init
pnpm add @capacitor/core @capacitor/ios
mkdir -p dist && echo "MRE" dist/index.html
pnpm --package=@capacitor/cli dlx cap init CapfireMRE com.mre.capfire --web-dir dist
pnpm --package=@capacitor/cli dlx cap add ios
pnpm add @capacitor-firebase/app-check @capacitor-firebase/authentication
pnpm --package=@capacitor/cli dlx cap sync ios
pnpm --package=@capacitor/cli dlx cap open ios

Then attempt to build in Xcode (Cmd+B).

SPM resolution fails with:

Conflicting identity for app-check: dependency 'github.com/google/app-check'
and dependency '.../node_modules/@capacitor-firebase/app-check' both point to
the same package identity 'app-check'.

Other information

No response

Capacitor doctor

💊 Capacitor Doctor 💊

Latest Dependencies:

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

Installed Dependencies:

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

[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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions