ios - ios 9.0 无法添加谷歌登录

标签 ios objective-c xcode ios9 google-signin

我已按照developers.google.com 中给出的所有步骤进行操作。

当我尝试做

#import <GoogleSignIn/GoogleSignIn.h>
[GIDSignIn sharedInstance].clientID = kClientID;

从我的 plist 文件中获取 clientID。

但它显示链接器错误,例如

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_SFSafariViewController", referenced from:
  objc-class-ref in GoogleSignIn(GIDSignIn.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see  invocation)

提前致谢。

最佳答案

我遇到了上述问题。

只需将“SafariServices.framework”添加到您的项目中,该项目可在 iOS 9 中使用。

enter image description here

关于ios - ios 9.0 无法添加谷歌登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32949700/

相关文章:

iphone - 如何使用 NSURLConnection 实例传递信息,以便我可以从 connectionDidFinishLoading 获取它

ios - swift 错误 : Type of expression is ambiguous without more context

objective-c - 声明 iVar 属性

ios - 应用程序关闭时 didFinishLaunchingWithOptions APNS

c# - 在 NavigationItem.TitleView 中缩放图像以适应 UINavigationBar 的内部

objective-c - 如何在同一个 UITableViewCell 中显示两行?

php - iOS 到 PDO PHP 和 MySQL

ios - 显示键盘时隐藏 UITextField

ios - containerAppExtensionEntitlementsWithCompletion 失败,错误为 : (null)

iOS Facebook 获取好友列表