Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16904

react native google signin failed in iOS react native

$
0
0

I run the react-native upgrade to fix the play store base 64 issue. Android is working fine the only issue I am facing with iOS. React native google sing in failed when run for the build.

I have run the following commands:

  • react-native-upgrade@0.59.1

  • rm -rf node_modules && npm i

  • Upgrade the google sdk 4.4.0 to 5.0.0 and

  • cd ios && pod install && cd ..

Here are errors:

1) No visible @interface for 'GIDSignIn' declares the selector 'signInSilently'

[[GIDSignIn sharedInstance] signInSilently];

2) No visible @interface for 'GIDSignIn' declares the selector 'hasAuthInKeychain'

RCT_REMAP_METHOD(isSignedIn,
                 resolver:(RCTPromiseResolveBlock)resolve
                 rejecter:(RCTPromiseRejectBlock)reject)
{
  BOOL isSignedIn = [[GIDSignIn sharedInstance] hasAuthInKeychain];
  resolve([NSNumber numberWithBool:isSignedIn]);
}

3) No visible @interface for 'GIDSignIn' declares the selector 'handleURL:sourceApplication:annotation:'

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

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

4) Use of undeclared identifier 'kGIDSignInErrorCodeNoSignInHandlersInstalled'

case kGIDSignInErrorCodeNoSignInHandlersInstalled:

Please let me know if anyone can help me with this...Thanks!


Viewing all articles
Browse latest Browse all 16904

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>