bright-optician-57015
07/11/2025, 6:26 AMHi team, I'm integrating LiveKit into my SwiftUI app () and using the latest version of the client-sdk-ios via SPM.sono
shows up in myLiveKit
and is embedded in the targetPackage Dependencies
also appears in dependencies, but I still getLiveKitWebRTC
errorsNo such module 'LiveKit'
Clean/build succeeded once, but I thinkis not properly linked or embeddedLiveKitWebRTC.xcframework
What’s the correct way to embed LiveKitWebRTC when using the Swift Package? Do I still need to manually add thefrom the release ZIP, or should SPM handle it automatically?.xcframework
Any advice on fixing theissue in SwiftUI (Xcode 15+) would be greatly appreciated.No such module 'LiveKit'
tall-airline-16756
07/11/2025, 6:26 AMtall-airline-16756
07/11/2025, 6:27 AMLiveKitWebRTC.xcframework
automatically—manual addition from the ZIP is not needed and can cause issues. Here’s a recommended checklist for resolving No such module 'LiveKit'
despite correct-looking integration:
• SPM dependency only: Do not add LiveKitWebRTC.xcframework
manually. Using the SPM integration—Xcode’s File > Add Packages... with `https://github.com/livekit/client-sdk-swift`—is sufficient. SPM pulls in LiveKitWebRTC
as a nested dependency automatically.
• Clean and rebuild project: Clean build folder, delete derived data, restart Xcode, then rebuild.
• Check Frameworks, Libraries, and Embedded Content: In your target settings, verify that LiveKit appears in the Frameworks, Libraries, and Embedded Content section. LiveKitWebRTC does not need a separate manual entry.
• Inspect Package.resolved: Confirm that your Package.resolved
includes both client-sdk-swift
and webrtc-xcframework
.
• Check Build Phases: Ensure your target’s build phases include LiveKit in _Link Binary with Libraries_; SPM should handle this, but double-checking can reveal misconfiguration.
Addressing these points resolves the vast majority of integration issues. If you follow these and still see the error, it likely points to an Xcode package resolution problem or project build configuration issue—not a missing LiveKitWebRTC
binary.
Let me know if you encounter a specific step where the configuration does not match these recommendations, or if a particular error message persists after trying the checklist.
Sources: multicam/multicam.xcodeproj/project.pbxproj | LiveKitExample.xcodeproj/project.pbxproj | Package@swift-6.0.swift | Package.swift | Swift & iOS SDK | livekit/livekit_composite | DeepWiki