google / gtm-oauth2

Google Toolbox for Mac - OAuth 2 Controllers
Apache License 2.0
126 stars 70 forks source link

My app crash when calling "GIDSignIn.sharedInstance().signIn()" at second run or another later #95

Closed kodakvn closed 7 years ago

kodakvn commented 7 years ago

I'm working with an iOS project that using Google SignIn services.

It seems to be ok at the first time running when I call "GIDSignIn.sharedInstance().signIn()" and "GIDSignIn.sharedInstance().signOut()" continuously.

In next running, when I call "GIDSignIn.sharedInstance().signIn()", my app crashs at function:

Please help me to solve this problem. Thank you very much!

P/s: My pod version is 1.2.0. I add 'Google/SignIn' to pod file and details info after running "pod install" Using FirebaseAnalytics (3.8.0) Using FirebaseCore (3.6.0) Using FirebaseInstanceID (1.0.10) Using GTMOAuth2 (1.1.4) Using GTMSessionFetcher (1.1.9) Using Google (3.0.3) Using GoogleSignIn (4.0.2) Using GoogleToolboxForMac (2.1.1)

Crash screenshot:

Screen_Shot_2017_04_17_at_4_18_03_PM
thomasvl commented 7 years ago

If you are using GoogleSignIn, I don't think you need to have GTMOAuth2 also, and GoogleSignIn might have some of the same class names (it was using an old copy of GTMOAuth2 at one point). I'd suggest opening a bug with that library since that appears to be where the problems are starting from and not directly from this library.

kodakvn commented 7 years ago

Hello Thomas

As I mentioned above, I added only 'Google/SingIn' in Podfile but after run '"pod install", there are some others were installed include GTMOAuth2.

thomasvl commented 7 years ago

Sorry, missed that. Rest of the comment still holds. We aren't very familiar with the GoogleSignIn library, so I'd suggest using their documented help places.

kiraniphone commented 5 years ago

Any update on this?

kiraniphone commented 5 years ago

@kodakvn did you find any fix for this?