Google Analytics libAdIdAccess.a不包含位码 [英] Google Analytics libAdIdAccess.a does not contain bitcode

查看:121
本文介绍了Google Analytics libAdIdAccess.a不包含位码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 7 beta 3刚刚安装了一些附加组件(现在版本为7.0 beta 3(7A152u)),现在我收到一个编译器错误:

  ld:'/<abbreviated> /Vendor/Analytics/GoogleAnalytics/libAdIdAccess.a(TAGActualAdIdAccess.o)'不包含位码。您必须使用启用位代码(Xcode设置ENABLE_BITCODE)重建它,从供应商获取更新的库或禁用此目标的位代码。对于架构armv7 
clang:error:linker命令失败,退出代码1(使用-v查看调用)

此Google代码信息为这是唯一提及GA和bitcode的地方。



如果我只能禁用这个库,而不是完全禁用bitcode,那将会很好。这可能吗?



回答为默认情况下启用的位代码提供了一种解决方法,这可能最终会成为更通用的问题的一个诱惑。

解决方案

更新:



每个人都有好消息!

Google Analytics现在支持Bitcode 3.14发布。您可以从他们的下载源中获取它,但是它尚未在Cocoapods上列出。

Google AnalyticsSDK下载



Change Log
$ b

Google需要将其分析SDK编译为位码库。然而,从谷歌更新他们的库到64位的以往经验,它花了超过半年的iirc。



我的建议是,如果你不支持watchOS,我们可以等待它,得到


  1. 构建设置


  2. 启用位码


  3. 设为否


  4. >如果您支持watchOS,请立即使用其他分析工具。



    额外信息:



    有开发人员在Google论坛上讨论它:
    https://groups.google.com/forum/#!topic/ga-mobile-app-analytics/d6ML4BKBBeY



    Facebook和Fabric。 io(Crashlytics,T​​witterKit)已经更新为使用位码,因此Google在技术上不应该太难以仿效。我相信这种挫折是政治。最有可能失去的是我们的用户。


    Xcode 7 beta 3 just installed some "additional components" (now Version 7.0 beta 3 (7A152u)), and now I'm getting a compiler error:

    ld: '/<abbreviated>/Vendor/Analytics/GoogleAnalytics/libAdIdAccess.a(TAGActualAdIdAccess.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)
    

    This Google Code post is the only mention I've found for GA and bitcode.

    It would be nice if I could disable it for this library only rather than disable bitcode entirely. Is that possible?

    This answer provides a work around for bitcode being enabled by default, and this may ultimately be a dupe of that more generic question.

    解决方案

    Update:

    Good news everyone!

    Google Analytics now supports Bitcode with their 3.14 release. You can grab it from their download sources, however its not listed on Cocoapods yet.

    Google Analytics SDK Download

    Change Log

    Original:

    Google needs to compile their analytics SDK into a bitcode library. However, from previous experience with Google updating their libraries to 64-bit it took over half a year iirc.

    My advice is if you're not supporting watchOS we can just wait it out, got to

    1. Build Settings

    2. Enable Bitcode

    3. Set to No

    If you are supporting watchOS, use a different analytics tool for now.

    Extra info:

    There's developers talking about it on a google forum here: https://groups.google.com/forum/#!topic/ga-mobile-app-analytics/d6ML4BKBBeY

    Facebook and Fabric.io (Crashlytics, TwitterKit) have already updated to use bitcode, so it technically shouldn't be too difficult for Google to follow suit. I believe this type of holdback to be politics. The ones who have the most to lose are our users.

    这篇关于Google Analytics libAdIdAccess.a不包含位码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆