Azure SDK for iOS
This repository is for active development of the Azure SDK for iOS. For consumers of the SDK we recommend visiting our versioned developer docs.
Note: The Azure SDK for iOS replaces a previous offering, known as Azure.iOS. Source code and documentation for Azure.iOS is available in the legacy branch.
For your convenience, each service has a separate set of libraries that you can choose to use instead of one, large Azure package. To get started with a specific library, see the README.md file located in the library's project folder. You can find service libraries in the
- The client libraries are written in modern Swift 5. Due to this, Xcode 10.2 or higher is required to use these libraries.
- You must have an Azure subscription to use these libraries.
The latest version of the SDK is 1.0.0-beta.8. Older releases are also available.
Currently, the client libraries are in beta. These libraries follow the Azure SDK Design Guidelines for iOS and share a number of core features such as HTTP retries, logging, transport protocols, authentication protocols, etc., so that once you learn how to use these features in one client library, you will know how to use them in other client libraries. You can learn about these shared features in AzureCore.
The following libraries are currently in beta:
Azure Communication Services
Note: The SDK is currently in beta. The API surface and feature sets are subject to change at any time before they become generally available. We do not currently recommend them for production use.
Install the libraries
To install the Azure client libraries for iOS, we recommend you use
Swift Package Manager.
As an alternative, you may also integrate the libraries using
Add a package dependency with Swift Package Manager
The Swift Package Manager is a tool for managing the distribution of Swift code.
It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.
Xcode comes with built-in support for Swift Package Manager and source control accounts and makes it easy to leverage
available Swift packages. Use Xcode to manage the versions of package dependencies and make sure your project has the
most up-to-date code changes.
To add the Azure SDK for iOS to your application, follow the instructions in
Adding Package Dependencies to Your App:
With your project open in Xcode 11 or later, select File > Swift Packages > Add Package Dependency... Enter the
clone URL of this repository: https://github.com/Azure/azure-sdk-for-ios.git and click Next. For the version rule,
specify the exact version or version range you wish to use with your application and click Next. Finally, place a
checkmark next to each client library you wish to use with your application, ensure your application target is selected
in the Add to target dropdown, and click Finish.
To add the Azure SDK for iOS to your application, follow the example in
Open your project's
Package.swift file and add a new package dependency to your project's
specifying the clone URL of this repository and the version specifier you wish to use:
.package(url: "https://github.com/Azure/azure-sdk-for-ios.git", from: "1.0.0-beta.8")
Next, add each client library you wish to use in a target to the target's array of
dependencies: ["AzureCommunicationChat", ...])
Integrate the client libraries with CocoaPods
CocoaPods is a dependency manager for Objective C and Swift projects. You can install it with
the following command:
$ [sudo] gem install cocoapods
CocoaPods 1.5+ is required.
To integrate one or more client libraries into your project using CocoaPods, specify them in your
Podfile, providing the version specifier you wish to use. To
ensure compatibility when using multiple client libraries in the same project, use the same version specifier for all
Azure SDK client libraries within the project:
platform :ios, '12.0'
# Comment the next line if you don't want to use dynamic frameworks
target 'MyTarget' do
pod 'AzureCommunicationChat', '~> 1.0.0-beta.8'
Then, run the following command:
$ pod install
Reporting security issues and security bugs
Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) firstname.lastname@example.org. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.
For details on contributing to this repository, see the contributing guide.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact email@example.com with any additional questions or comments.