Install Sendbird Chat SwiftUI
You can install Sendbird Chat SwiftUI through either Swift Packages or CocoaPods.
Swift Packages
-
In Xcode, select File > Add Packages Dependencies....
-
Add
SendbirdSwiftUI
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 Sendbird Chat SwiftUI version on Sendbird Chat SwiftUI releases.
-
Select your project name under Add to Target and finish adding package.
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 re-downloads each package from its online source.
CocoaPods
- Add
SendBirdSwiftUI
into yourPodfile
in Xcode as below:
- Install the
SendbirdSwiftUI
framework throughCocoaPods
.
- Update the
SendbirdSwiftUI
framework throughCocoaPods
.