Skip to content

Commit 150181c

Browse files
committed
Update README.md
1 parent 5a50001 commit 150181c

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
![Platform](https://img.shields.io/badge/Platform-iOS-orange.svg)
44
![CocoaPods compatible](https://img.shields.io/badge/CocoaPods-compatible-green.svg)
55
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
6+
![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-orange.svg)
67
[![BSD License](https://img.shields.io/badge/License-BSD-brightgreen.svg)](https://github.com/sendbird/sendbird-webrtc-ios/blob/master/LICENSE)
78

89
## Introduction
@@ -15,9 +16,15 @@ iOS 9.0 or higher
1516

1617
## Installation
1718

18-
The size of the framework is huge. In order to install on your project, you can use CocoaPods or Carthage. If you want to use CocoaPods, then you have to install git-lfs first. Please refer to the [git-lfs document](https://git-lfs.github.com/).
19+
### Install WebRTC Framework from [Swift Package Manager](https://developer.apple.com/documentation/swift_packages)
1920

20-
### Install WebRTC Framework from CocoaPods
21+
1. Go to your Swift Package Manager's File tab and select Swift Packages. Then choose `Add package dependency`
22+
23+
2. Add SendBirdWebRTC into your Package Repository with the following URL: `https://github.com/sendbird/sendbird-webrtc-ios`
24+
25+
3. To add the package, select appropriate dependency rule and click `Add Package`.
26+
27+
### Install WebRTC Framework from [CocoaPods](https://github.com/CocoaPods/CocoaPods)
2128

2229
Add below into your Podfile.
2330

@@ -38,9 +45,10 @@ pod install
3845

3946
Now you can see installed WebRTC framework by inspecting `YOUR_PROJECT.xcworkspace`.
4047

41-
### Install WebRTC Framework from Carthage
48+
### Install WebRTC Framework from [Carthage](https://github.com/Carthage/Carthage)
4249

43-
1. Add `github "sendbird/sendbird-webrtc-ios.git"` to your Cartfile.
44-
2. Run `carthage update`.
45-
3. Go to your Xcode project's `"General"` settings. Open `<YOUR_XCODE_PROJECT_DIRECTORY>/Carthage/Build/iOS` in Finder and drag `WebRTC.framework` to the `"Embedded Binaries"` section in Xcode. Make sure `Copy items if needed` is selected and click `Finish`.
50+
> Requires Carthage version 0.38 or higher
4651
52+
1. Add `binary "https://raw.githubusercontent.com/sendbird/sendbird-webrtc-ios/latest/SendBirdWebRTC.json"` to your Cartfile.
53+
2. Run `carthage update --use-xcframeworks`.
54+
3. Go to your Xcode project's `"General"` settings. Open `<YOUR_XCODE_PROJECT_DIRECTORY>/Carthage/Build/iOS` in Finder and drag `WebRTC.framework` to the `"Embedded Binaries"` section in Xcode. Make sure `Copy items if needed` is selected and click `Finish`.

0 commit comments

Comments
 (0)