Cannot find type MSALWebviewParameters in scope.

Victor Pale 96 Reputation points
2021-11-03T18:46:15.56+00:00

Hello coders.

I have a native iOS app, I want to sign in the user through a browser with message text.

Therefore, I use MSAL library to implement authentication.

I follow this tutorial: https://learn.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-ios

I add the next code:
146305-codigomsal.png

But the issue is: MSALWebviewParameters is not found:
146246-errorswift.png

Does that mean there is an error with CocoaPods dependency?

Thank you for your help.
Best regards, Victor.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Answer accepted by question author
  1. Victor Pale 96 Reputation points
    2021-11-03T22:57:19.85+00:00

    Hello coders.

    I can resolve my issue. The problem was podfile with the next values:
    146391-1versionpod.png

    Change it, with the next values:
    146286-2versionpod.png

    After that, MSLWebviewParameters was recognized:
    146401-correccionswift.png

    Best regards, Victor.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. JamesTran-MSFT 37,226 Reputation points Microsoft Employee Moderator
    2021-11-03T23:51:41.81+00:00

    @Victor Pale
    I'm glad that you were able to resolve your issue, and thank you for posting your solution here so that others experiencing the same can easily reference this!

    0 comments No comments

Your answer

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