Skip to content

chore: use LiveKitWebRTC#94

Draft
griffithcaleb wants to merge 1 commit into
livekit:masterfrom
griffithcaleb:cg/use-livekitwebrtc
Draft

chore: use LiveKitWebRTC#94
griffithcaleb wants to merge 1 commit into
livekit:masterfrom
griffithcaleb:cg/use-livekitwebrtc

Conversation

@griffithcaleb

@griffithcaleb griffithcaleb commented Jun 25, 2026

Copy link
Copy Markdown

Switch iOS dependency from WebRTC-SDK to LiveKitWebRTC to resolve CocoaPods framework conflicts

Problem

When using livekit-react-native-webrtc alongside other WebRTC-based SDKs pod install fails with:

[!] The 'Pods-XYZ' target has frameworks with conflicting names: webrtc.xcframework.

Both WebRTC-SDK and JitsiWebRTC vendor a framework named webrtc.xcframework, and CocoaPods refuses to integrate two frameworks with the same filename into the same target.

Related: livekit/livekit#2809

Solution

Switch the iOS CocoaPods dependency from WebRTC-SDK to LiveKitWebRTC — LiveKit's own repackaged WebRTC build from livekit/webrtc-xcframework. This is the same WebRTC codebase (same version 144.7559.10) but:

  • Vendored as LiveKitWebRTC.xcframework (no filename collision)
  • Objective-C symbols are prefixed with LK (e.g., RTCPeerConnectionLKRTCPeerConnection, no linker-level collisions)

This matches what client-sdk-swift already does — it depends on LiveKitWebRTC, not WebRTC-SDK.

Changes

  • Podspec: WebRTC-SDKLiveKitWebRTC dependency
  • All ios/ ObjC sources:
    • #import <WebRTC/...>#import <LiveKitWebRTC/...>
    • #import <LiveKitWebRTC/WebRTC.h>#import <LiveKitWebRTC/LiveKitWebRTC.h> (umbrella header renamed)
    • All WebRTC SDK type references prefixed with LK (e.g., RTCPeerConnectionLKRTCPeerConnection)
    • Header filenames in imports unchanged (LiveKitWebRTC keeps original header filenames)
    • Locally-defined types preserved (RTCVideoView, RTCVideoViewManager, RTCVideoViewObjectFit) to maintain JS bridge compatibility

No JS-side changes required

The native module name (WebRTCModule) and native view name (RTCVideoView) are unchanged, so no changes to the TypeScript/JavaScript layer are needed.

@griffithcaleb griffithcaleb marked this pull request as draft June 25, 2026 19:52
@griffithcaleb

Copy link
Copy Markdown
Author

Believe CI is failing becase consuming test app needs to declare livekit podspec repo

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

Successfully merging this pull request may close these issues.

1 participant