No visible @interface for 'GIDSignIn' declares the selector 'handleURL:

5k Views Asked by At

I implemented the delegate method of Google SignIn in objective C. But I am getting the below error Error - No visible @interface for 'GIDSignIn'

- (BOOL)application:(UIApplication *)app
            openURL:(NSURL *)url
            options:(NSDictionary<NSString *, id> *)options{

    return [[GIDSignIn sharedInstance] handleURL:url];

}
2

There are 2 best solutions below

0
Anbu.Karthik On BEST ANSWER

replace this and try again once , ref : Google Sign-In quick migration guide

  [[GIDSignIn sharedInstance] handleURL:url sourceApplication:sourceApplication annotation:annotation];

full answer

- (BOOL)application:(UIApplication *)application
    openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(id)annotation {

return [[GIDSignIn sharedInstance] handleURL:url sourceApplication:sourceApplication annotation:annotation];

}
0
yoc On

change from:

[[GIDSignIn sharedInstance] handleURL:url
                sourceApplication:sourceApplication
                       annotation:annotation];

to:

[[GIDSignIn sharedInstance] handleURL:url];

go to: https://developers.google.com/identity/sign-in/ios/quick-migration-guide#objective-c