无法找到“GoogleService-Info.plist”同时尝试将Google登录集成到我的应用中 [英] Unable to find "GoogleService-Info.plist" while trying to integrate Google Sign-in in my app
问题描述
我遵循:将Google登录集成到您的iOS应用程序中 然而,当我执行应用程序时,即使在我看到我的第一个视图控制器之前,它也停止在应用程序委托本身。 原因是因为我在 在调试中,当它到达这个代码时,它表示 终止应用程序,由于未捕获的异常 I在我的目录中放置 我面临同样的问题。而且,实际上,我在cocoapods文件中解决了这个问题,我将podGoogle / SignIn'而不是pod Google。希望它能帮助你。 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 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 I faced the same problem. And, actually, I solved it when in cocoapods file I placed "pod 'Google/SignIn'" instead of "pod Google". Hope it could help you too. 这篇关于无法找到“GoogleService-Info.plist”同时尝试将Google登录集成到我的应用中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
application didFinishLaunchingWithOptions withOptions
>中编写的这几行代码,它们是:
NSError * configureError;
[[GGLContext sharedInstance] configureWithError:& configureError];
NSAssert(!configureError,@配置Google服务时出错:%@,configureError);
[GIDSignIn sharedInstance] .delegate = self;
'NSInternalInconsistencyException',原因:'配置Google
服务时出错:错误域= com.google.greenhouse代码= -200无法
配置GGL。UserInfo = 0x7ff9c2e1d000
{NSLocalizedRecoverySuggestion =检查
的格式和位置GoogleService-Info.plist。,NSLocalizedDescription =无法配置
GGL。 ,NSLocalizedFailureReason =无法解析提供的
GoogleService-Info.plist。查看日志以获取详细信息。''。
GoogleService-Info.plist
,但它仍然不起作用。 "application didFinishLaunchingWithOptions withOptions
", which are:"NSError* configureError;
[[GGLContext sharedInstance] configureWithError: &configureError];
NSAssert(!configureError, @"Error configuring Google services: %@", configureError);
[GIDSignIn sharedInstance].delegate = self;"
GoogleService-Info.plist
in my directory, but it still isn't working.