Install Sendbird UIKit for iOS
You can start building a messaging experience in your app by installing Sendbird UIKit. This developer kit is an add-on feature to Sendbird Chat SDK so installing it will also install the core Chat SDK. The minimum requirement of Chat SDK for iOS is 4.0.13 or later.
Note: Currently, Sendbird UIKit for iOS supports iPhone OSs only, not iPad OSs.
Swift Packages
-
In Xcode, select File > Add Packages.
-
Add
SendbirdUIKitinto yourPackage Repositoryas below:
- Swift Package Manager automatically sets the dependency rule to "Up To Next Major" and installs the latest version. Adjust the dependency rule and version according to your needs. You can check out the latest UIKit version on UIKit releases.
Note: A build error may occur while using Swift packages with Xcode due to issues with caching. To resolve this error, try resetting the Xcode package caches. Open the
Filemenu, go toPackages, and selectReset Package Caches. This deletes all local package data and redownloads each package from its online source.
CocoaPods
- Add
SendBirdUIKitinto yourPodfilein Xcode as below:
- Install the
SendBirdUIKitframework throughCocoaPods.
- Update the
SendBirdUIKitframework throughCocoaPods.
Carthage
- Add
SendbirdUIKitandSendbirdChatSDKinto yourCartfileas below:
- Install the
SendbirdUIKitframework throughCarthage.
Note: Building or creating the
SendbirdUIKitframework withCarthagecan only be done using the latestSwift. If yourSwiftis not the most recent version, the framework should be copied into your project manually.
- Go to your Xcode project target's General settings tab in the
Frameworks and Librariessection. Then drag and dropSendbirdUIKit.xcframeworkandSendbirdChatSDK.xcframeworkfrom the<YOUR_XCODE_PROJECT_DIRECTORY>/Carthage/Buildfolder.