-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode 12.5 and iOS 14.5 "Error: The provided scheme is not valid" [with solution] #18
Comments
The fix mentioned above worked for me on iOS 14.7.1 devices that were experiencing this issue. |
I currently see that when trying to use window.open on iOS (I tested it on an iPad) the app crashes. |
I've added the relevant fix in PR #23 if anyone is interested, seems to solve the crash that is reported here. |
I've released v3.0.2 and v2.0.2 with this fix. |
Testing version 3.0.1 of the plugin on iOS 14.5 I get the error:
which I can track back to
OAuthPlugin.swift
.It appears to be the same issue as in auth0/react-native-auth0#360, which is that "Since version 12.5 (released on 26 Apr 2021), Xcode no longer accepts an entire URL for the ASWebAuthenticationSession scheme value."
That issue has a merged PR: auth0/react-native-auth0#369
While I don't know Swift nor C++, I was able to somehow translate that PR and implement a fix that appears to be working.
I say "appears" because due to operating in a strict enterprise development environment I can test only half of the OAuth flow, which is also the reason I'm not sending a PR.
The fix is simply adding two lines (and renaming the corresponding parameter):
Again, I can't test the whole flow, so if someone could apply that fix and test appropriately would be great!
The text was updated successfully, but these errors were encountered: