pod" Google / SignIn" vs pod" GoogleSignIn"

时间:2017-03-30 20:23:40

标签: ios google-signin

如果您使用pod "Google/SignIn",则会安装GoogleSignIn 3.0.0

如果您使用pod "GoogleSignIn",则会安装最新版本4.0.2

但是,如果您使用pod "GoogleSignIn"运行应用,则应用会崩溃并显示以下消息:

You have enabled the SignIn service in Developer Console, but it appears as though your Podfile is missing the line: 'pod "Google/SignIn" or you may need to run `pod update` in your project directory.

那么GoogleSignIn 3.0.0是最后一个使用的版本吗?

2 个答案:

答案 0 :(得分:1)

我可以使用它:

pod 'Google/SignIn'
pod 'GoogleSignIn', '~> 4.0'
pod 'Google', '~> 3.0'

pod 'Google/SignIn'只是为了通过检查,因为它是旧版本,然后是GoogleSignIn,然后它将被pod忽略。

您还需要pod 'Google', '~> 3.0'

使用此功能,您可以使用Google Sign 4.0+而不会出错。

答案 1 :(得分:0)

首先,抱歉@ Marckaroujo我无法添加评论所以在你的帖子上询问qstn。

我在阅读你的帖子之后添加了以下内容

pod 'Google/SignIn'
pod 'GoogleSignIn', '~> 4.0'
pod 'Google', '~> 3.0'

但是现在我按下pod安装后会收到警告。

[!] Google has been deprecated

上面的警告是否会在我的应用程序中稍后会产生一些错误,因为它会对公众有用。