Swift packages for MSGraphClientSDK and MSGraphClientModels?

mansiGeo 21 Reputation points
2024-10-01T23:40:35.3433333+00:00

Hello,

In past we have used MS Graph API for our iOS app using Pods for dependency management. Our app was dependent on these pods.

pod 'MSAL', '~> 1.2.8'

pod 'MSGraphClientSDK', ' ~> 1.0.0'

pod 'MSGraphClientModels', '~> 1.3.0'

Our app now uses Swift Package Manager (SPM) and I am unable to find the equivalent of these pods in SPM. Only package I found was for MSAL (https://github.com/AzureAD/microsoft-authentication-library-for-objc).

Are there any swift packages for 'MSGraphClientSDK' and 'MSGraphClientModels'?

Microsoft Security Microsoft Authenticator
Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,366 Reputation points
    2024-10-02T07:58:09.2633333+00:00

    Hi @mansiGeo

    Currently, there are no official Swift packages for MSGraphClientSDK and MSGraphClientModels. You can continue using CocoaPods or Carthage to manage these dependencies.

    If you want to fully migrate to Swift Package Manager, you might need to manually integrate these Objective-C libraries into your Swift project or wait for the official release of Swift versions of the SDK.

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.