2. podFile 加上
pod 'Firebase/Analytics'
pod 'GoogleSignIn', '~> 5.0.2'
// AppDelegate.m
- (BOOL)application:(UIApplication *)application openURL:(nonnull NSURL *)url options:(nonnull NSDictionary<NSString *,id> *)options {
return [[FBSDKApplicationDelegate sharedInstance] application:application openURL:url options:options] || [RNGoogleSignin application:application openURL:url options:options];
}
GoogleSignin.configure({
iosClientId:
'1795445603utvtntu93ui.apps.googleusercontent.com',
});
// iosClientId 把 GoogleService-Info 這段貼上
// <key>CLIENT_ID</key>
// <string>.....</string>