Google SignIn CocoaPods已弃用 [英] Google SignIn CocoaPods deprecated

查看:498
本文介绍了Google SignIn CocoaPods已弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在iOS应用中实施Google SignIn,因为现在Google pod已被弃用?

How to implement Google SignIn in iOS app as now Google pod is deprecated?

使用已弃用的pod提供
:未找到框架GoogleAppUtilities

Using the deprecated pod is giving : Framework not found GoogleAppUtilities

推荐答案

pod安装确实是'GoogleSignIn'。但是,这也意味着将桥接头调整为

The pod install is indeed 'GoogleSignIn' . However this also means adjusting the bridging header to

#import <GoogleSignin/GoogleSignIn.h>

而不是使用:

GGLContext.sharedInstance().configureWithError(&configureError)

你需要使用:

GIDSignIn.sharedInstance().clientID = kClientID

并将kClientID替换为您的客户端ID(您可以/需要删除一些其他关于& configureError的行)。

And replace kClientID with your client id (You can/need to remove some other lines also regarding the &configureError).

您可以在此处找到相关信息: Google登录

You can find the info here : Google Sign-In

现在,Pod安装遵循蓝色笔记中提到的手动安装方法。

The Pod install now follows the manually install method mentioned in the blue notes.

这篇关于Google SignIn CocoaPods已弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆