react-native-google-signin / google-signin

Google Sign-in for your React Native applications
https://react-native-google-signin.github.io/
MIT License
3.12k stars 877 forks source link

Terminating app due to uncaught exception 'NSInvalidArgumentException' #1300

Closed shakhbozmn closed 3 weeks ago

shakhbozmn commented 3 weeks ago

[CoreFoundation] Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Your app is missing support for the following URL schemes: some_id First throw call stack: ( 0 CoreFoundation 0x00000001804ae0f8 exceptionPreprocess + 172 1 libobjc.A.dylib 0x0000000180087db4 objc_exception_throw + 56 2 CoreFoundation 0x00000001804ae008 -[NSException initWithCoder:] + 0 3 JimmyChef 0x000000010165df90 -[GIDSignIn signInWithOptions:] + 444 4 JimmyChef 0x000000010165cd8c -[GIDSignIn signInWithPresentingViewController:hint:additionalScopes:completion:] + 208 5 JimmyChef 0x0000000101af64d4 43-[RNGoogleSignin signIn:resolver:rejecter:]_block_invoke + 372 6 libdispatch.dylib 0x0000000180170104 _dispatch_call_block_and_release + 24 7 libdispatch.dylib 0x0000000180171978<…>

hey guys, today while debugging this error is happened with my app. I don't change any setting or configs yet, i was debugging the ui issues and fixing it and after rebuilding my app using npm run ios, this error is blocking and crashing the app.

shakhbozmn commented 3 weeks ago

i reviewed the @vonovak answer but all the settings is correct for my project, i checked for clarifying i have url schema types properly placed as said in docs, and as i said it was working before i change the ui and installed some plugins

vonovak commented 3 weeks ago

Hello and thanks for asking, Please see https://react-native-google-signin.github.io/docs/troubleshooting#on-ios-the-app-crashes-when-tapping-sign-in-button Thank you 🙂