尝试安装新的Google Analytics 3.0测试版时出现链接错误 [英] Linker errors when trying to install new Google Analytics 3.0 Beta

查看:160
本文介绍了尝试安装新的Google Analytics 3.0测试版时出现链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我相信就在今天,Google发布了一项针对其iOS Analytics框架工作(版本3.0)的新更新。当我按照指示并尝试运行代码时,我得到:

I believe just today Google released a new update to their iOS Analytics frame work (version 3.0). When I follow the instructions and try to run the code, I get:


架构armv7的未定义符号:_inflate,引用
from:
l002 in libGoogleAnalyticsServices.a(NSData + zlib.o)_deflate,引用自:
l001 in libGoogleAnalyticsServices.a(NSData + zlib.o) inflateInit2 引用自:
l002 in libGoogleAnalyticsServices.a(NSData + zlib.o)_deflateEnd,引用自:
l001 in libGoogleAnalyticsServices.a(NSData + zlib.o)_OBJC_CLASS _ $ _ ASIdentifierManager ,引用自:
libGoogleAnalyticsServices.a中的objc-class-ref(TAGAdvertiserId.o)
libGoogleAnalyticsServices.a中的objc-class-ref(TAGAdvertisingTrackingEnabledMacro.o)
objc-class-ref在libGoogleAnalyticsServices.a(TAGMobileAdwordsUniqueIdMacro.o)中引用
_inflateEnd,引用自:libGoogleAnalyticsServices.a(NSData + zlib.o)中的
l002_SCNetworkRea chabilityCreateWithName,引用自libGoogleAnalyticsServices.a(GAIReachabilityChecker.o)中的
l027(libGoogleAnalyticsServices.a中的
l002)(TAGNetReachability.o)​​_SCNetworkReachabilitySetCallback,引用自:libGoogleAnalyticsServices.a中的
l027 (TAGNetReachability.o)​​ deflateInit2 ,引用自:$ b $ (NSData + zlib.o)_SCNetworkReachabilityScheduleWithRunLoop,引用自:
l027 in libGoogleAnalyticsServices.a(GAIReachabilityChecker.o)
l002 in libGoogleAnalyticsServices.a(TAGNetReachability.o)​​_SCNetworkReachabilityUnscheduleFromRunLoop ,参考文献:libGoogleAnalyticsServices.a(GAIReachabilityChecker.o)中的
l027 $ lib
libGoogleAnalyticsServices.a中的l003(TAGNetReachability.o )ld:没有为架构armv7 clang找到符号:错误:linker
命令失败,退出代码1(使用-v查看调用)

Undefined symbols for architecture armv7: "_inflate", referenced from: l002 in libGoogleAnalyticsServices.a(NSData+zlib.o) "_deflate", referenced from: l001 in libGoogleAnalyticsServices.a(NSData+zlib.o) "inflateInit2", referenced from: l002 in libGoogleAnalyticsServices.a(NSData+zlib.o) "_deflateEnd", referenced from: l001 in libGoogleAnalyticsServices.a(NSData+zlib.o) "_OBJC_CLASS_$_ASIdentifierManager", referenced from: objc-class-ref in libGoogleAnalyticsServices.a(TAGAdvertiserId.o) objc-class-ref in libGoogleAnalyticsServices.a(TAGAdvertisingTrackingEnabledMacro.o) objc-class-ref in libGoogleAnalyticsServices.a(TAGMobileAdwordsUniqueIdMacro.o)
"_inflateEnd", referenced from: l002 in libGoogleAnalyticsServices.a(NSData+zlib.o) "_SCNetworkReachabilityCreateWithName", referenced from: l027 in libGoogleAnalyticsServices.a(GAIReachabilityChecker.o) l002 in libGoogleAnalyticsServices.a(TAGNetReachability.o) "_SCNetworkReachabilitySetCallback", referenced from: l027 in libGoogleAnalyticsServices.a(GAIReachabilityChecker.o) l002 in libGoogleAnalyticsServices.a(TAGNetReachability.o) l003 in libGoogleAnalyticsServices.a(TAGNetReachability.o) "deflateInit2", referenced from: l001 in libGoogleAnalyticsServices.a(NSData+zlib.o) "_SCNetworkReachabilityScheduleWithRunLoop", referenced from: l027 in libGoogleAnalyticsServices.a(GAIReachabilityChecker.o) l002 in libGoogleAnalyticsServices.a(TAGNetReachability.o) "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from: l027 in libGoogleAnalyticsServices.a(GAIReachabilityChecker.o) l003 in libGoogleAnalyticsServices.a(TAGNetReachability.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

可能他们忘了包含我需要添加的库文件? (他们忘记更改指令的其他方面)。

Possible they forgot to include a lib I need to add? (some other aspects of the instructions they forgot to change as well). Otherwise have followed their instructions to a tee and still not getting the needed results.

推荐答案

我不得不添加 libz.dylib AdSupport.framework 添加到构建阶段以使其消失。谷歌没有在他们的说明中包括这些内容,所以要与他们核对,以确保这是好的,然后将更新此帖子。

I had to add both libz.dylib and AdSupport.framework to the build phases to make this go away. Google doesn't include these in their instructions so going to check with them to make sure this is OK then will update this post.

更新:现在您还需要添加 libsqlite3.0.dylib 才能正常工作。

UPDATE: Now you also need to add libsqlite3.0.dylib to get it to work.

这篇关于尝试安装新的Google Analytics 3.0测试版时出现链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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