Skip to content

Commit 381c734

Browse files
authored
Merge pull request #308430 from lisaleehan/patch-10
added SPM support
2 parents d1bdb84 + 3ec326e commit 381c734

1 file changed

Lines changed: 15 additions & 4 deletions

File tree

  • articles/communication-services/quickstarts/voice-video-calling/includes/video-calling

articles/communication-services/quickstarts/voice-video-calling/includes/video-calling/video-calling-ios.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,25 @@ end
5757

5858
4. Open the `.xcworkspace` with Xcode.
5959

60-
### Using XCFramework directly
60+
### Using Swift Package Manager [Recommended]
61+
62+
Swift Package Manager is now the recommended installation method for the Azure Communication Calling SDK. CocoaPods support is being deprecated and will be removed in future versions.
63+
If you prefer to use Swift Package Manager, you can add the Azure Communication Calling SDK directly to your Xcode project.
64+
65+
Installation Steps
66+
1. In Xcode, go to File > Add Package Dependencies...
67+
2. Enter the following repository URL: [https://github.com/Azure/SwiftPM-AzureCommunicationCalling](https://github.com/Azure/SwiftPM-AzureCommunicationCalling)
68+
3. For Dependency Rule, select Exact Version and enter: 2.17.0-beta.3
69+
4. Click Add Package
70+
5. Select the AzureCommunicationCalling product and add it to your target
6171

62-
If you aren't using `CocoaPods` as a dependency manager, you can directly download the `AzureCommunicationCalling.xcframework` directly from our [release page](https://github.com/Azure/Communication/releases).
6372

64-
Is important to know that `AzureCommunicationCalling` has a dependency on [`AzureCommunicationCommon`](https://github.com/Azure/azure-sdk-for-ios/tree/main/sdk/communication/AzureCommunicationCommon) so you need to install it as well in your project.
73+
### Using XCFramework directly
74+
75+
If you aren't using CocoaPods or Swift Package Manager, you can directly download the AzureCommunicationCalling.xcframework from our release page.
6576

6677
>[!NOTE]
67-
> Although [`AzureCommunicationCommon`](https://github.com/Azure/azure-sdk-for-ios/tree/main/sdk/communication/AzureCommunicationCommon) is a pure swift package, you cannot install it using [`Swift Package Manager`](https://www.swift.org/package-manager/) to use it with `AzureCommunicationCalling` because the latter is an Objective-C framework and [`Swift Package Manager`](https://www.swift.org/package-manager/) deliberately do not support Swift ObjC interface headers by design which means is not possible to work together with `AzureCommunicationCalling` if installed using [`Swift Package Manager`](https://www.swift.org/package-manager/). You would have to either install via another dependency manager or generate a `xcframework` from [`AzureCommunicationCommon`](https://github.com/Azure/azure-sdk-for-ios/tree/main/sdk/communication/AzureCommunicationCommon) sources and import into your project.
78+
> Keep in mind that AzureCommunicationCalling has a dependency on AzureCommunicationCommon, so you need to install both in your project. You would need to generate an xcframework from AzureCommunicationCommon sources and import it into your project.
6879
6980
### Request access to the microphone and camera
7081

0 commit comments

Comments
 (0)