AzureAD / azure-activedirectory-library-for-objc

The ADAL SDK for Objective C gives you the ability to add support for Work Accounts to your iOS and macOS applications with just a few lines of additional code. This SDK gives your application the full functionality of Microsoft Azure AD, including industry standard protocol support for OAuth2, Web API integration with user level consent, and two factor authentication support.
MIT License
177 stars 113 forks source link

Library working in XCode environment but produces error code 34018 in production #1586

Closed menasheu closed 2 years ago

menasheu commented 2 years ago

Hi, We use the MSAL library 1.1.25 (but the problem occurred also with 1.1.24) and everything works fine when in the application is loaded from XCode. However when we produce an ipa file and either export it or upload to the store the user gets the following error:

Couldn't query current account with error: Error Domain=NSOSStatusErrorDomain Code=-34018 "(null)" UserInfo={MSALErrorDescriptionKey=Failed to get items from keychain.}

com.microsoft.adalcache is correctly defined in the Keychain Sharing. Same for the entitlements.

fernandatoledo commented 2 years ago

@menasheu I'm having the same issue, how did you solve it? Thank you!