Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 6 : Linker error with Google Analytics

I'm currently getting this error

Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_ASIdentifierManager", referenced from: objc-class-ref in libAdIdAccess.a(TAGActualAdIdAccess.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Added Frameworks:

  • AdSupport
  • CFNetwork
  • libsqlite3.0.dylib
  • libz.dylib
  • libAdIdAccess.a
  • libGoogleAnalticsServices.a

Tried evertyhing, also added -lAdIdAccess and -lGoogleAnalytics to other linker flag.

It happens with version 3.10 of the SDK.

Hope you can give me some advices to resolve this issue.

like image 482
TdoubleG Avatar asked Aug 24 '26 12:08

TdoubleG


1 Answers

For implementing Google analytics you also have to import these two frameworks.

SystemConfiguration.framework

CoreData.framework

With libsqlite3.0.dylib,libz.dylib,libGoogleAnalticsServices.a

A great tutorial on Google analytics

Thanks.

like image 89
Pankaj purohit Avatar answered Aug 26 '26 04:08

Pankaj purohit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!