加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ios – 尝试在我的应用中集成Google登录时无法找到“GoogleServi

发布时间:2020-12-15 01:44:07 所属栏目:百科 来源:网络整理
导读:我跟着: Integrating Google Sign-In into your iOS app 然而,当我执行应用程序时,它会在应用程序委托中停止 – 甚至在我看到我的第一个视图控制器之前. 原因是我在“application didFinishLaunchingWithOptions withOptions”中编写了这几行代码,它们是:
我跟着: Integrating Google Sign-In into your iOS app

然而,当我执行应用程序时,它会在应用程序委托中停止 – 甚至在我看到我的第一个视图控制器之前.

原因是我在“application didFinishLaunchingWithOptions withOptions”中编写了这几行代码,它们是:

"NSError* configureError;
[[GGLContext sharedInstance] configureWithError: &configureError];
    NSAssert(!configureError,@"Error configuring Google services: %@",configureError);

 [GIDSignIn sharedInstance].delegate = self;"

在调试中,当它到达此代码时,它说

“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.}'”.

我将GoogleService-Info.plist放在我的目录中,但它仍然无效.

解决方法

我遇到了同样的问题.实际上,我在cocoapods文件中解决了这个问题,我将“pod’Google / SignIn’”改为“pod Google”而不是“pod Google”.希望它也可以帮到你.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读