我已关注:将Google登录集成到您的iOS应用中
但是,当我执行该应用程序时,它会在应用程序委托本身中暂停-甚至在我看到我的第一个视图控制器之前。
原因是由于我在"application didFinishLaunchingWithOptions withOptions
“”中写了以下几行代码:
"NSError* configureError;
[[GGLContext sharedInstance] configureWithError: &configureError];
NSAssert(!configureError, @"Error configuring Google services: %@", configureError);
[GIDSignIn sharedInstance].delegate = self;"
在调试中,当到达此代码时,它说
“由于未捕获的异常'NSInternalInconsistencyException'而终止应用程序,原因:'配置Google服务时出错:Domain = com.google.greenhouse Code = -200错误。无法配置GGL。” UserInfo = 0x7ff9c2e1d000 {NSLocalizedRecoverySuggestion =检查GoogleService的格式和位置-Info.plist。,NSLocalizedDescription =无法配置GGL。,NSLocalizedFailureReason =无法解析提供的GoogleService-Info.plist。有关详细信息,请参阅日志。}'“。
我将放在GoogleService-Info.plist
我的目录中,但仍然无法正常工作。
我遇到了同样的问题。而且,实际上,当在cocoapods文件中放置“ pod'Google / SignIn'”而不是“ pod Google”时,我解决了。希望它也能对您有所帮助。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句