为什么我收到“使用未解析的标识符'GIDSignIn'”的错误?

问题描述 投票:0回答:1

我试图从google实现它但在Swift 4中失败。也许代码已经过时了。如何在swift 4中解决问题?我的pod文件适用于Swift 4。

pod 'Google/SignIn'

我的AppDelegate文件看起来像这样。

Appdelegate

ios swift4 google-signin
1个回答
0
投票

尝试更新您的pod文件以包含以下内容:

pod 'GTMAppAuth'

pod 'GoogleSignIn'

并在AppDelegate中使用此导入:

import GoogleSignIn

希望这有助于某人。

© www.soinside.com 2019 - 2024. All rights reserved.