I have followed : Integrating Google Sign-In into your iOS app
However when I execute the app, it halts in the app delegate itself - even before I can see my first view controller.
The reason is because of these few lines of code I wrote in the "application didFinishLaunchingWithOptions withOptions
", which are:
"NSError* configureError;
[[GGLContext sharedInstance] configureWithError: &configureError];
NSAssert(!configureError, @"Error configuring Google services: %@", configureError);
[GIDSignIn sharedInstance].delegate = self;"
In the debug, when it reaches this code, it says
"Terminating app due to uncaught exception
'NSInternalInconsistencyException', reason: 'Error configuring Google
services: Error Domain=com.google.greenhouse Code=-200 "Unable to
configure GGL." UserInfo=0x7ff9c2e1d000
{NSLocalizedRecoverySuggestion=Check formatting and location of
GoogleService-Info.plist., NSLocalizedDescription=Unable to configure
GGL., NSLocalizedFailureReason=Unable to parse supplied
GoogleService-Info.plist. See log for details.}'".
I put the GoogleService-Info.plist
in my directory, but it still isn't working.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…