Comments (8)
@joonhocho You say in the documentation to NOT use the POD.... So where does GoogleSignIn/GoogleSignIn.h come from? I see it in GoogleSignIn.framework, but am not sure why it's not showing up. I get the GoogleSignIn/GoogleSignIn.h file not found error.
from react-native-google-sign-in.
@joonhocho I had the same issue of GoogleSignIn/GoogleSignIn.h file not found. I was getting this error because I did not add the path of google_signin_sdk_4_X_X to "Framework Search Paths" settings inside "Build Settings" of the project. After adding the path, the project build succeeded.
from react-native-google-sign-in.
@jinxac, not really sure about it, but you could check (you're very likely forget number 3):
1. Make sure your pod is up to date with latest
pod 'GoogleSignIn'
2. Double check your [app?]-Bridgin-Header.h file - should look like this:
#ifndef app_Bridging_Header_h
#define app_Bridging_Header_h
#import <React/RCTBridgeModule.h>
#import <React/RCTViewManager.h>
#import <React/RCTEventEmitter.h>
#import <GoogleSignin/GoogleSignIn.h>
#endif /* app_Bridging_Header_h */
3. Did you forget to add is in the end of your AppDelegate.m
?:
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
BOOL handled = [[GIDSignIn sharedInstance] handleURL:url
sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey]
annotation:options[UIApplicationOpenURLOptionsAnnotationKey]];
return handled;
}
- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
sourceApplication:(NSString *)sourceApplication
annotation:(id)annotation {
if ([[GIDSignIn sharedInstance] handleURL:url
sourceApplication:sourceApplication
annotation:annotation]) {
return YES;
}
return YES;
}
from react-native-google-sign-in.
I have the same problem.. on iOs.. by the way, the link to article "create Swift Bridging Header" is broken (that page not work anymore)..
from react-native-google-sign-in.
Hey @xralphack, have a look at #43.. that one saved my life ;)
In summary, the GoogleSignIn pod was updated, so.. we'll need to:
-
Change
#import <Google/SignIn.h>
=>#import <GoogleSignin/GoogleSignIn.h>
-
Change the config in didFinishLaunchingWithOptions to:
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"GoogleService-Info" ofType:@"plist"];
NSDictionary *plistDict = [NSDictionary dictionaryWithContentsOfFile:filePath];
[GIDSignIn sharedInstance].clientID = [plistDict objectForKey:@"CLIENT_ID"];
from react-native-google-sign-in.
I am getting error Use of undeclared identifier 'GIDSignIn' after making the above changes. Any help please?
from react-native-google-sign-in.
After changing to new GoogleSignIn Pod, I am still getting error 'GoogleSignIn/GoogleSignIn.h' file not found
in AppDelegate.h
could someone help me please?
from react-native-google-sign-in.
@andreecy @cloudle @jinxac @xralphack
Just upgraded to the latest Google SignIn SDK for iOS. (npm version 1.0.16)
Please follow new instructions carefully.
https://github.com/joonhocho/react-native-google-sign-in#ios
Also refer to ExampleApp if something is not working. I've tested ExampleApp and is working fine.
Feel free to reopen this issue if you cannot get it working.
from react-native-google-sign-in.
Related Issues (20)
- Google+ Shutdown HOT 1
- Failed to compile release APK react native 0.60.3
- Apple Mach-O Linker (id) Error
- Must I use firebase? HOT 2
- Doesn't stay signed in when restarting app HOT 1
- Error code 8 with new account sign in HOT 5
- How to render "GoogleSignIn" Button? HOT 1
- "disconnect()" is not revoking the authentication.
- Project obsolete? HOT 4
- Setup Swift Bridging Header link not working HOT 1
- ld: library not found for -lDoubleConversion
- RNGoogleSignInEvents.swift:11:29: Use of undeclared type 'RCTEventEmitter' HOT 1
- Warning Issues for RNGoogleSignInEvents and RNGoogleSignIn HOT 5
- FAILURE: Build failed with an exception. Could not find com.google.android.gms:play-services-base:12.0.1 HOT 1
- i love you
- ld: library not found for -lRNGoogleSignin HOT 2
- Project with path ':react-native-google-sign-in' could not be found in project ':app'. HOT 1
- The operation couldn’t be completed. (com.google.HTTPStatus error 400.) HOT 1
- Issue with RN v0.57.0
- error reactNativeGoogleSignin currenntUserAsync is not function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-google-sign-in.