gpt4 book ai didi

IOS Google OAuth 1 次认证成功后出现错误

转载 作者:行者123 更新时间:2023-11-28 21:19:17 26 4
gpt4 key购买 nike

我正在尝试使用 swift 进行 Google 身份验证以获取消息列表。但是我按照谷歌的所有步骤here

在我在模拟器中运行并成功登录到我的帐户后,身份验证成功。然后在所有成功之后出现问题,这很奇怪。有谁知道如何解决这个问题?

  1. 选择器“displayResultWithTicket:finishedWithObject:error:”未实现或命名错误

  2. void GTMSessionFetcherAssertValidSelector(id _Nullable __strong, SEL _Nullable, ...)(),/Users/macbookpro/Documents/Zaiya/Pods/GTMSessionFetcher/Source/GTMSessionFetcher.m 断言失败

  3. 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“回调选择器未实现或命名错误”

请分享您的知识,谢谢!

实际运行错误:

enter image description here

最佳答案

我遇到了同样的问题。我相信这是因为谷歌还没有更新 Quickstart for Swift 3。

变化:displayResultWithTicket:finishedWithObject:error:#selector([Your View Controller Name Here].displayResultWithTicket(ticket:finishedWithObject:error:)),符合新的Swift 3 语法

关于IOS Google OAuth 1 次认证成功后出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40366950/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com