Swift Package Manager (Recommended)
Swift Package Manager is the recommended way to install the LiveKit Swift SDK. It supports all platforms including iOS, macOS, visionOS, tvOS, and Mac Catalyst.Using Package.swift
Add the LiveKit dependency to yourPackage.swift file:
Package.swift
Using Xcode
To add LiveKit to your Xcode project:The SDK requires the following minimum versions:
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 14.0+
- tvOS 17.0+
- Swift 5.9+
CocoaPods (Deprecated)
Platform Limitations
CocoaPods only supports iOS and macOS. For visionOS or tvOS, you must use Swift Package Manager.Podfile Configuration
If you need to use CocoaPods temporarily, add the LiveKit podspec source to yourPodfile:
Podfile
The LiveKit podspec source is necessary because some dependencies no longer officially support CocoaPods.
Verifying Installation
After installing the SDK, verify it works by importing LiveKit in your Swift code:Room instance, the SDK is installed correctly.
Project Configuration
Required Capabilities
Depending on which features you use, you may need to enable certain capabilities:Camera and Microphone Access
Add the following keys to yourInfo.plist:
Info.plist
Background Audio (iOS)
To continue audio playback when the app is in the background:Screen Sharing (iOS)
For iOS screen sharing, you’ll need to create a Broadcast Upload Extension. See the iOS Screen Sharing guide for detailed instructions.macOS Specific: ReplayKit Framework
This is not required if you’re targeting macOS 11.0 or later.
Dependencies
The LiveKit Swift SDK depends on the following packages:- LiveKitWebRTC - WebRTC framework for real-time communications
- LiveKitUniFFI - FFI bindings for LiveKit native code
- SwiftProtobuf - Protocol Buffers for Swift
- swift-collections - Additional Swift collection types
App Store Submission
DSYM Warning
When submitting to the App Store, you may see this warning:This warning will not prevent your app from being submitted or passing App Store review. The
LiveKitWebRTC.xcframework binary does not include DSYMs by design.Next Steps
Now that you’ve installed the SDK, you’re ready to build your first LiveKit app!Quick Start
Build a working video call in minutes
API Reference
Explore the complete API documentation