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.
Swift Packages
-
In Xcode, select File > Add Packages.
-
Add
SendbirdUIKit
into yourPackage Repository
as 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
File
menu, go toPackages
, and selectReset Package Caches
. This deletes all local package data and redownloads each package from its online source.
CocoaPods
- Add
SendBirdUIKit
into yourPodfile
in Xcode as below:
- Install the
SendBirdUIKit
framework throughCocoaPods
.
- Update the
SendBirdUIKit
framework throughCocoaPods
.
Carthage
- Add
SendbirdUIKit
andSendbirdChatSDK
into yourCartfile
as below:
- Install the
SendbirdUIKit
framework throughCarthage
.
Note: Building or creating the
SendbirdUIKit
framework withCarthage
can only be done using the latestSwift
. If yourSwift
is 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 Libraries
section. Then drag and dropSendbirdUIKit.xcframework
andSendbirdChatSDK.xcframework
from the<YOUR_XCODE_PROJECT_DIRECTORY>/Carthage/Build
folder.