gpt4 book ai didi

ios - iOS 中使用 Google 登录的 Google Endpoints

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:12:32 24 4
gpt4 key购买 nike

我正在尝试在 iOS 中为 Google Endpoints 设置 Client API 文件,我生成的所有文件都很好,但是现在当我尝试将它们(foo.h 和 foo_Sources.m)导入到我的项目我不断收到构建错误说

GTLDefines.h file not found

#if GTL_BUILT_AS_FRAMEWORK
#import "GTL/GTLDefines.h"
#else
#import "GTLDefines.h" //error on this line of the files
#endif

因为我已经集成了 Google 登录(使用 GoogleOpenSource.framework),所以我不应该手动从 GTLSource 项目 引入文件。我这样做只是为了看看会发生什么,但我收到很多错误,说所有文件中都定义了 multiple interfaces/properties

那么我该如何修复缺少 GTLDefines.h 的错误呢?

这些是 instructions我要去这样做。文档仍然引用现已弃用的 Google+ 登录 API,新的 Google 登录 API 中的说明是否仍然相同?

最佳答案

我最终发现新的 Google Sign-in API 不需要 GoogleOpenSource.framework。我删除了它,然后添加了 GTLSource 项目 中的文件,一切都编译好了

关于ios - iOS 中使用 Google 登录的 Google Endpoints,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36001197/

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