Issues integrating Intune SDK on iOS

Copper Contributor

Hi,

 

I followed https://docs.microsoft.com/en-us/mem/intune/developer/app-sdk-ios to integrate Intune SDK for iOS into the custom app. That custom app doesn't use any preexisting mechanism to authenticate with Active Directory. As per the documentation we also have to integrate MSAL. After integration Intune SDK and MSAL, when app calls below code

 

IntuneMAMEnrollmentManager.instance().loginAndEnrollAccount(nil)

 

then i was getting below error:

"Unexpected failure. Contact your IT administrator for help"

 

After enabling logs and i found below:

IntuneMAM: MAMError: "An unknown ADAL API is linked. Intune will continue running as if a known ADAL version 2.2 API is linked."

Based upon that i integrated ADAL pod in the Xcode project and removed MSAL

This fixed this error.

 

Question: 

- Is it mandatory to integrate ADAL library also with Intune iOS SDK (due to above issue), as i can't see documentation saying that ? 

0 Replies