Integrate VideoSDK Using Swift Package Manager (SPM) - iOS
Integrating VideoSDK with Swift Package Manager (SPM) on iOS is a straightforward process that enables you to effortlessly incorporate video and audio calling functionalities into your iOS application. Below are the steps to smoothly install VideoSDK using Swift Package Manager (SPM).
Step 1: Copy the below package link.
https://github.com/videosdk-live/videosdk-rtc-ios-spm
Step 2: Navigate to your XCode project.
Now select File > Add Package Dependencies.. in Menu bar.
Step 3: Add Package
-
Paste the above package link into the search bar. Select the dependency rule to the
branch
main. -
Add the package, it should fetch the package.
- Add the fetched package.
- After the package is added successfully, it should show it in navigation panel under package dependencies section.
Step 4: Add permission to use microphone and camera. Insert following lines on code in info.plist
info.plist
<key>NSCameraUsageDescription</key>
<string>Allow camera access to start video.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Allow microphone access to start audio.</string>
Step 5: Import package
Import the package into your project files using import VideoSDKRTC
to start using the VideoSDK package.
Got a Question? Ask us on discord