Minimum iOS version
The Daily Client SDK for iOS requires iOS ≥ 13.0.Swift Package Manager
In Xcode, go toFile -> Add Packages... and enter the following URL in ‘Search or Enter Package URL’ textbox in the top right corner of that window:
https://github.com/daily-co/daily-client-ios
Pick the desired dependency rule (under “Dependency Rule”), as well as build target (under “Add to Project”) and click “Add Package”.
Note: If you intend to use screen sharing, please add both Products, Daily and DailySystemBroadcast. For more details, refer to daily-client-ios on GitHub.
Cocoapods
Add the following line to your Podfile file:App setup
You will need to update your project’sInfo.plist to add three new entries with the following keys:
NSCameraUsageDescriptionNSMicrophoneUsageDescriptionUIBackgroundModes
UIBackgroundModes is handled slightly differently and will resolve to an array. For its first item, specify the value voip. This ensures that audio will continue uninterrupted when your app is sent to the background.
To add the new entries through Xcode, open the Info.plist and add the following three entries:
| Key | Type | Value |
|---|---|---|
| Privacy - Camera Usage Description | String | ”Daily Playground needs camera access to work” |
| Privacy - Microphone Usage Description | String | ”Daily Playground needs microphone access to work” |
| Required background modes | Array | 1 item |
| ---> Item 0 | String | ”App provides Voice over IP services” |
To learn more about building an app with the Daily Client SDK for iOS, see our iOS Overview and iOS demo app.