Skip to content

CocoaPods conflict: flutter_webrtc and livekit_client depend on different WebRTC-SDK versions #856

@shkvoretz

Description

@shkvoretz

When trying to build a Flutter macOS app with livekit_client 2.5.0+hotfix.1, I’m hitting a CocoaPods resolution error due to mismatched WebRTC-SDK versions:

CocoaPods could not find compatible versions for pod "WebRTC-SDK":
  In Podfile:
    flutter_webrtc (from `Flutter/ephemeral/.symlinks/plugins/flutter_webrtc/macos`) was resolved to 1.1.0, which depends on
      WebRTC-SDK (= 137.7151.03)

    livekit_client (from `Flutter/ephemeral/.symlinks/plugins/livekit_client/macos`) was resolved to 2.5.0+hotfix.1, which depends on
      WebRTC-SDK (= 137.7151.02)

This prevents the project from compiling since CocoaPods can only resolve one version.

Steps to Reproduce
1. Create a new Flutter macOS project
2. Add livekit_client: ^2.5.0+hotfix.1
3. Run flutter build macos
4. Observe CocoaPods dependency resolution error

Expected Behavior

livekit_client and its transitive dependency flutter_webrtc should align on the same WebRTC-SDK version to allow CocoaPods to resolve dependencies cleanly.

Actual Behavior

Build fails with version conflict (137.7151.02 vs 137.7151.03).

Flutter (Channel stable, 3.35.1, on macOS 15.6 24G84 darwin-arm64, locale en-AU)
Android toolchain - develop for Android devices (Android SDK version 35.0.0)
Xcode - develop for iOS and macOS (Xcode 16.4)
Android Studio (version 2025.1)

Possible Solution
• Update livekit_client to depend on WebRTC-SDK (= 137.7151.03) (or whichever version flutter_webrtc currently requires)
• Alternatively, loosen the Podspec constraint to allow compatible patch versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions