# Issues with Auth0 client nuget on ios Xamarin

**URL:** <https://community.auth0.com/t/issues-with-auth0-client-nuget-on-ios-xamarin/62094>\
**Category:** Get Help\
**Created:** [May 2, 2021, 10:19pm UTC](https://community.auth0.com/t/issues-with-auth0-client-nuget-on-ios-xamarin/62094 "2021-05-02T22:19:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ecash](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ecash/32/29179_2.png) [@ecash](https://community.auth0.com/u/ecash)\
**Post date:** [May 2, 2021, 10:19pm UTC](https://community.auth0.com/t/issues-with-auth0-client-nuget-on-ios-xamarin/62094/1 "2021-05-02T22:19:51Z")

</div>

I recently updated to the lastest version of BigSur for mac and now im having this issue with the nuget client for the xamarin ios app.

```
Foundation.MonoTouchException: Objective-C exception thrown. Name: NSInvalidArgumentException Reason: The provided scheme is not valid. A scheme should not include special characters such as ":" or "/".

```

---

<div class="post-metadata">

**Author:** ![lhughey](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lhughey/32/29272_2.png) [@lhughey](https://community.auth0.com/u/lhughey)\
**Post date:** [May 6, 2021, 7:36pm UTC](https://community.auth0.com/t/issues-with-auth0-client-nuget-on-ios-xamarin/62094/2 "2021-05-06T19:36:02Z")

</div>

I can confirm that this is a breaking issue. I’m not able to use the product. I’ve updated to the latest versions of the nuget and still experience the issue. I’m including the full stack trace for diagnostics.

at ObjCRuntime.Runtime.ThrowNSException (System.IntPtr ns\_exception) [0x00000] in /Users/builder/azdo/\_work/1/s/xamarin-macios/src/ObjCRuntime/Runtime.cs:407  
at ObjCRuntime.Runtime.throw\_ns\_exception (System.IntPtr exc) [0x00000] in /Users/builder/azdo/\_work/1/s/xamarin-macios/runtime/Delegates.generated.cs:126  
at (wrapper native-to-managed) ObjCRuntime.Runtime.throw\_ns\_exception(intptr)  
at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr\_objc\_msgSend\_IntPtr\_IntPtr\_IntPtr(intptr,intptr,intptr,intptr,intptr)  
at AuthenticationServices.ASWebAuthenticationSession…ctor (Foundation.NSUrl url, System.String callbackUrlScheme, AuthenticationServices.ASWebAuthenticationSessionCompletionHandler completionHandler) [0x0004c] in /Users/builder/azdo/\_work/1/s/xamarin-macios/src/build/ios/native/AuthenticationServices/ASWebAuthenticationSession.g.cs:100  
at Auth0.OidcClient.ASWebAuthenticationSessionBrowser.Start (IdentityModel.OidcClient.Browser.BrowserOptions options, Auth0.OidcClient.ASWebAuthenticationSessionOptions sessionOptions) [0x0002a] in :0  
at Auth0.OidcClient.AutoSelectBrowser.Launch (IdentityModel.OidcClient.Browser.BrowserOptions options, System.Threading.CancellationToken cancellationToken) [0x0000f] in :0  
at Auth0.OidcClient.IOSBrowserBase.InvokeAsync (IdentityModel.OidcClient.Browser.BrowserOptions options, System.Threading.CancellationToken cancellationToken) [0x0003a] in :0  
at IdentityModel.OidcClient.AuthorizeClient.AuthorizeAsync (IdentityModel.OidcClient.AuthorizeRequest request, System.Threading.CancellationToken cancellationToken) [0x000c9] in C:\local\identity\model\IdentityModel.OidcClient\src\AuthorizeClient.cs:63  
at (wrapper managed-to-native) ObjCRuntime.Messaging.IntPtr\_objc\_msgSend\_IntPtr\_IntPtr\_IntPtr(intptr,intptr,intptr,intptr,intptr)  
at AuthenticationServices.ASWebAuthenticationSession…ctor (Foundation.NSUrl url, System.String callbackUrlScheme, AuthenticationServices.ASWebAuthenticationSessionCompletionHandler completionHandler) [0x0004c] in /Users/builder/azdo/\_work/1/s/xamarin-macios/src/build/ios/native/AuthenticationServices/ASWebAuthenticationSession.g.cs:100  
at Auth0.OidcClient.ASWebAuthenticationSessionBrowser.Start (IdentityModel.OidcClient.Browser.BrowserOptions options, Auth0.OidcClient.ASWebAuthenticationSessionOptions sessionOptions) [0x0002a] in :0  
at Auth0.OidcClient.AutoSelectBrowser.Launch (IdentityModel.OidcClient.Browser.BrowserOptions options, System.Threading.CancellationToken cancellationToken) [0x0000f] in :0  
at Auth0.OidcClient.IOSBrowserBase.InvokeAsync (IdentityModel.OidcClient.Browser.BrowserOptions options, System.Threading.CancellationToken cancellationToken) [0x0003a] in :0  
at IdentityModel.OidcClient.AuthorizeClient.AuthorizeAsync (IdentityModel.OidcClient.AuthorizeRequest request, System.Threading.CancellationToken cancellationToken) [0x000c9] in C:\local\identity\model\IdentityModel.OidcClient\src\AuthorizeClient.cs:63  
at IdentityModel.OidcClient.OidcClient.LoginAsync (IdentityModel.OidcClient.LoginRequest request, System.Threading.CancellationToken cancellationToken) [0x00111] in C:\local\identity\model\IdentityModel.OidcClient\src\OidcClient.cs:73  
at Auth0.OidcClient.Auth0ClientBase.LoginAsync (System.Object extraParameters, System.Threading.CancellationToken cancellationToken) [0x000f3] in :0  
at WeSub.iOS.Services.AuthenticationService.LoginAsync () [0x0002f] in /Users/lhughey/Source/WeSub/WeSub/WeSub.iOS/Services/AuthenticationService.cs:28  
at WeSub.Authentication.Interfaces.CurrentSession.Login () [0x00050] in /Users/lhughey/Source/WeSub/WeSub.Authentication/Interfaces/ICurrentSession.cs:200  
at WeSub.Authentication.ViewModels.LoginSignUpPageViewModel.SetUserTypeAndLoginCommandExecute (System.String userType) [0x00073] in /Users/lhughey/Source/WeSub/WeSub.Authentication/ViewModels/LoginSignUpPageViewModel.cs:87  
at WeSub.Authentication.ViewModels.LoginSignUpPageViewModel.\<.ctor\>b\_\_44\_1 (System.String a) [0x00025] in /Users/lhughey/Source/WeSub/WeSub.Authentication/ViewModels/LoginSignUpPageViewModel.cs:72

---

<div class="post-metadata">

**Author:** ![lhughey](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lhughey/32/29272_2.png) [@lhughey](https://community.auth0.com/u/lhughey)\
**Post date:** [May 6, 2021, 7:40pm UTC](https://community.auth0.com/t/issues-with-auth0-client-nuget-on-ios-xamarin/62094/3 "2021-05-06T19:40:58Z")

</div>

Update: There is a workaround posted here [Using Xcode 12.5 and iOS 14.5: The provided scheme is not valid. A scheme should not include special characters such as “:” or “/”. · Issue #189 · auth0/auth0-oidc-client-net (github.com)](https://github.com/auth0/auth0-oidc-client-net/issues/189)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 7, 2021, 8:16am UTC](https://community.auth0.com/t/issues-with-auth0-client-nuget-on-ios-xamarin/62094/4 "2021-05-07T08:16:06Z")

</div>

Thanks for sharing that with the rest of community!

---

<div class="post-metadata">

**Author:** ![walarsh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/walarsh/32/12799_2.png) [@walarsh](https://community.auth0.com/u/walarsh)\
**Post date:** [May 14, 2021, 5:57pm UTC](https://community.auth0.com/t/issues-with-auth0-client-nuget-on-ios-xamarin/62094/5 "2021-05-14T17:57:52Z")

</div>

I am facing the same error in react native, is there a known workaround for it?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 17, 2021, 8:28am UTC](https://community.auth0.com/t/issues-with-auth0-client-nuget-on-ios-xamarin/62094/6 "2021-05-17T08:28:18Z")

</div>

Have you checked what @lhughey posted?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 27, 2021, 10:50am UTC](https://community.auth0.com/t/issues-with-auth0-client-nuget-on-ios-xamarin/62094/7 "2021-05-27T10:50:32Z")

</div>


