Linker errors trying to install new beta version of Google Analytics 3.0

I believe that only today Google has released a new update of its work in iOS Analytics (version 3.0). When I follow the instructions and try to run the code, I get:

Undefined symbols for armv7 architecture: "_inflate", link from: l002 to libGoogleAnalyticsServices.a (NSData + zlib.o) "_deflate" referenced: l001 to libGoogleAnalyticsServices.a (NSData + zlib.o) "inflateInit2" referenced by: l002 in libGoogleAnalyticsServices.a (NSData + zlib.o) "_deflateEnd" referenced by: l001 in libGoogleAnalyticsServices.a (NSData + zlib.o) "_OBJC_CLASS _ $ _ ASIdentifierManager" referenced by class -ref in libGoogleAnalyticsServices.a (TAGAdvertiserId.o) objc-class-ref in libGoogleAnalyticsServices.a (TAGAdvertisingTrackingEnabledMacro.o) objc-class-ref in libGoogleAnalyticsServices.a (TAGMoMacdwords
"_inflateEnd" referenced: l002 in libGoogleAnalyticsServices.a (NSData + zlib.o) "_SCNetworkReachabilityCreateWithName" referenced: l027 in libGoogleAnalyticsServices.a (GAIReachCheckChecker.oGetGlach.laglach.oGlAchAtGlAlGetAlGetAlGetAlGetAlGetAlGtAlGtAlGtAlGeterGlAtGlAlGtAlGtAlGeterGlAtGlAtGlAtGlAtGlAtGlAtGlAnGtGlnGln.html "referenced: l027 at libGoogleAnalyticsServices.a (GAIReachCheckChecker.o) l002 at libGoogleAnalyticsServices.a (TAGNetReachability.o) l003 at libGoogleAnalyticsServices.a (TAGNetReachability.o)" liblateInital NSData + zlib.o) "_SCNetworkReachabilityScheduleWithRunLoop" referenced by: l027 in libGoogleAnalyticsServices.a (GAIReachCheckChecker.o) l002 in libGoogleAnalyticsServices.a (TAGNetReachability.ounRunNutRunNutRunNutRunNutRunNutRunUnRunNutRunNutRunService) link: l027 in libGoogleAnalyticsServices.a (GAIReachCheckChecker.o) l003 in libGoogleAnalyticsServices.a (TAGNetReachability.o) ld: character not found for architecture armv7 clang: error: linker command with exit code 1 (use -v to call the call)

Perhaps they forgot to include the lib that I need to add? (some other aspects of the instructions that they also forgot to change). Otherwise, they followed their instructions on the tee and still have not received the desired results.

+55
ios google-analytics google-analytics-api
Aug 17 '13 at 7:09
source share
6 answers

I had to add both libz.dylib and AdSupport.framework to the build steps to get this gone. Google does not include them in its instructions, therefore, to check them to make sure that this is normal, update this post.

UPDATE: now you need to add libsqlite3.0.dylib to make it work.

+146
Aug 18 '13 at 7:30
source share

I downloaded version 3.06 of Google Analytics Services for iOS in early April 2014, and STILL ran into the problems mentioned above. Google updated its docs by pointing out the need for links libz.dylib and AdSupport.framework.

SOLUTION: I found a trial version and an error, I also needed to link libsqlite3.dylib to build on a simulator or on a device.

+24
Apr 13 '14 at 2:59
source share

Add

libz.dylib

AdSupport.framework

libsqlite3.0.dylib

Google has not updated its manual since October 8, 2013.

Google analytics guide here

+22
Oct 08 '13 at 14:21
source share

None of the above solutions worked for me. However, for me, this added:

 libz.dylib libsqlite3.0.dylib libGoogleAnalyticsServices.a 

libGoogleAnalyticsServices.a is a file that can be found in the iOS SDK v3 downloadable for Google Apps for Mobile Applications.

Hope this helps!

+10
Oct 28 '14 at 23:49
source share

I had libz.dylib and AdSupport.framework according to instructions from Google, they worked perfectly.

Then I had to add -all_load to other linker flags for some other library dependency, then Google Analytics started a build failure with linker error.

I had to add the libsqlite3.0.dylib structure to make it work.

So there is something to do with the -all_load linker flag

+1
Nov 06 '14 at 16:02
source share

Before third-party developers turned on BITCODE for their old libraries, you can turn off the bit code in your own project if you don't have the Apple Watch extension for your application.

enter image description here

+1
Sep 28 '15 at 12:46
source share



All Articles