gpt4 book ai didi

ios - 在函数声明中找不到 GTMAppAuth 'presentingViewController'

转载 作者:塔克拉玛干 更新时间:2023-11-02 09:22:19 27 4
gpt4 key购买 nike

我想按照以下步骤集成 GTMAppAuth 和 GDrive:

$ pod 安装

target 'GTMAppAuth Drive Example iOS' do
platform :ios, '8.0'

pod 'GTMAppAuth'
pod 'GoogleAPIClientForREST/Drive'
end

$打开示例-iOS.xcworkspace

https://github.com/google/GTMAppAuth/tree/master/Example-iOS

将客户端 ID 从 Google 控制台复制到剪贴板。在 GTMAppAuthExampleViewController.m 中使用新的客户端 ID 更新 kClientID。

最后,打开 Info.plist 并完全展开“URL 类型”(又名“CFBundleURLTypes”)并将 com.googleusercontent.apps.YOUR_CLIENT 替换为您客户端 ID 的反向 DNS 表示法形式(不包括 :/oauthredirect 路径组件) ).

但是为什么评论中有错误?我的 Xcode 版本是 8.3.1

enter image description here

最佳答案

AppAuth 的 github 上有一个 Unresolved 问题:https://github.com/google/GTMAppAuth/issues/21

目前的解决方法似乎是将这一行添加到 Podfile 中:
pod 'AppAuth', :inhibit_warnings => true

关于ios - 在函数声明中找不到 GTMAppAuth 'presentingViewController',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43443672/

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