gpt4 book ai didi

ios - Xcode7: libGGLAnalytics.a(GGLContext+Analytics.o)' 不包含位码

转载 作者:IT王子 更新时间:2023-10-29 08:14:57 26 4
gpt4 key购买 nike

使用 Xcode7。当我在模拟器上运行我的应用程序时,我没有收到任何错误。当我尝试在真实设备上运行时,我得到了这个:

ld: 'Test-IOS/Pods/Google/Libraries/libGGLAnalytics.a(GGLContext+Analytics.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 armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我该如何解决这个错误?

最佳答案

问题是适用于 iOS 的 Google Analytics(分析)目前不支持位码。这是 Google 代码上的问题:

https://code.google.com/p/analytics-issues/issues/detail?id=671

目前的解决方法是为您的项目禁用位码。在项目文件的 Build Options 下的 Build Settings 选项卡中,将 Enable Bitcode 标志设置为 false。

Bitcode Flag

请注意,如果您完全禁用它,您将无法为 watchOS 构建。似乎也有一种方法可以只为 iOS 禁用它,但你将无法在 watchOS 上使用分析。

关于ios - Xcode7: libGGLAnalytics.a(GGLContext+Analytics.o)' 不包含位码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32685658/

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