opened
karolsojko
username_0
I think I did everything according to the Readme - the app runs and works, but when I click the Google Sign In button it crashes - what I can see in the logs is:

```
HelloWorldApp[75023:1475420] *** Terminating app due to uncaught exception 
'NSInvalidArgumentException', reason: 'uiDelegate must either be a |UIViewController| 
or implement the |signIn:presentViewController:| and |signIn:dismissViewController:| methods from |GIDSignInUIDelegate|.'
```

Does anyone have any idea how to fix this?
[iOS] uiDelegate is not a UIViewController
issue
created
karolsojko
username_0
I've been able to fix this with a custom `ViewController.h` and `ViewController.m` - so the part from Google Docs https://developers.google.com/identity/sign-in/ios/sign-in#add_the_sign-in_button - should be added as a reference to the docs
comment
created
devfd
username_1
@username_0 thanks for reporting this. Any chance you can set up a public repo or best a PR so that I can look into it ?
comment
created
tomeng728
username_2
@username_0 Seeing the same error here! What do you mean by customer ViewController files?

Thanks
comment
created
karolsojko
username_0
@username_2 I used this repo as a refference and copied ViewControllers or most of their contents https://github.com/googlesamples/google-services/tree/master/ios/signin/SignInExample
comment
created
khuong291
username_3
+1
comment
created
joaofranca
username_4
@username_0 can you be a little more specific? My problem is not copying/adapting the view controllers or the code, but in the context of react-native how does this all blend together?
comment
closed
jozan
username_5
issue
created
jozan
username_5
This is quite old issue and we have not seen similar reports lately. If you experience this don't hesitate to create a new issue.
comment