gpt4 book ai didi

ios - GoogleSignIn iOS 框架不支持 Bitcode

转载 作者:可可西里 更新时间:2023-11-01 04:45:18 24 4
gpt4 key购买 nike

我真的很想为我的 iOS 项目添加 Bitcode 支持,但我使用的是 Google Sign In 框架,看起来他们仍然没有向库中添加 Bitcode 支持。

我似乎找不到任何关于这是否即将推出的信息,也找不到关于其他开发人员如何要求此功能的很多信息……我是这里的少数人吗?没有其他人在 iOS 中使用 Google 登录框架,还是他们只是不想使用 Bitcode?

我会删除 Google Sign In 框架,因为它对我来说只是个麻烦,但我担心我的用户中有 7% 注册了 Google Sign In,所以我现在只能使用它。

我正在使用 pod :

pod 'GoogleSignIn'
pod 'GoogleAnalytics'

GoogleAnalytics 现在似乎很好并且支持 BitCode,但是当启用 Bitcode 时 GoogleSignIn 框架仍然会出错,例如:

...Pods/GoogleAuthUtilities/Libraries/libGTMOAuth2_external.a(GTMOAuth2Authentication.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

最佳答案

是的,目前“登录”库似乎不支持 BitCode。但是,您始终可以禁用它,因为正如 Apple 在其注释中所说,Bitcode 是可选的:

For iOS apps, bitcode is the default, but optional. If you provide bitcode, all apps and frameworks in the app bundle need to include bitcode. For watchOS apps, bitcode is required.

所以,你只需要禁用它:

  1. 选择您的目标。
  2. 转到build设置。
  3. 搜索“位码”。
  4. 将“启用位码”选项更改为否。

Xcode Project

我.

关于ios - GoogleSignIn iOS 框架不支持 Bitcode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35463661/

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