简体   繁体   English

为什么会出现“使用未解决的标识符'GIDSignIn'”的错误?

[英]Why I am getting error of “Use of unresolved identifier 'GIDSignIn'”?

I am trying to implement it from google but failed in Swift 4. Maybe the code is outdated. 我正在尝试从Google实现它,但是在Swift 4中失败了。也许代码已经过时了。 How can I solve the issue in swift 4? 如何快速解决问题4? My pod file is for Swift 4. 我的pod文件用于Swift 4。

pod 'Google/SignIn'

and my AppDelegate file is looking like this. 我的AppDelegate文件看起来像这样。

Appdelegate 的appdelegate

Try updating your pod file to include the following: 尝试更新您的Pod文件以包括以下内容:

pod 'GTMAppAuth'

pod 'GoogleSignIn'

And also use this import in your AppDelegate: 并在AppDelegate中使用此导入:

import GoogleSignIn

Hope this helps someone out. 希望这可以帮助某人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我不断收到使用未解决的标识符错误迅速 - I keep getting a use unresolved identifier error swift 使用未解决的标识符错误 - use of unresolved identifier error 我收到一条错误消息:“使用未声明的标识符'事件'” - I am getting an error that reads “Use of Undeclared Identifier 'event'” 我收到此错误“使用未声明的标识符'食谱' - I am getting this error "use of undeclared identifier 'recipe' 尝试将图像调整为缩略图大小,kCGInterpolationHigh出现错误“使用未解析的标识符” - Trying to resize an image to a thumbnail, getting error “Use of unresolved identifier” for kCGInterpolationHigh 在 xcode 11.4.1 中,对于资产文件夹中的图像,我收到此错误“使用未解析的标识符”,这是为什么呢? - In xcode 11.4.1 I get this error “Use of unresolved identifier” for an image which is in assets folder, why is that? Xcode使用未解决的标识符错误 - Xcode use of unresolved Identifier error 错误:使用无法解析的标识符“ indexPath” - Error: Use of unresolved identifier 'indexPath' 模棱两可的“使用无法解析的标识符”错误? - ambiguous “use of unresolved identifier” error? UIImageWriteToSavedPhotosAlbum 错误:使用未解析的标识符 - UIImageWriteToSavedPhotosAlbum error : use of unresolved identifier
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM