Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Analytics SDK 3.0 _sqlite3 linker errors in iOS

I'm integrating Google Analytics SDK 3.0 in my project. But I am getting linker errors when try to build my project.

As mentioned in the documentation, I have linked following libraries in my project,

  • libGoogleAnalyticsServices.a
  • AdSupport.framework
  • CoreData.framework
  • SystemConfiguration.framework
  • libz.dylib

Even then, I get following errors on building the project,

d: warning: directory not found for option '-L"/Users/....NameProject/Libraries/Google Analytics"' "_sqlite3_bind_blob", referenced from:   -[TAGDataLayerPersistentStoreImpl writeEntriesToDatabase:expireTime:] in libGoogleAnalyticsServices.a(TAGDataLayerPersistentStoreImpl.o) "_sqlite3_bind_int", referenced from:   -[TAGDataLayerPersistentStoreImpl deleteEntries:] in libGoogleAnalyticsServices.a(TAGDataLayerPersistentStoreImpl.o) "_sqlite3_bind_int64", referenced from:   -[TAGDataLayerPersistentStoreImpl writeEntriesToDatabase:expireTime:] in libGoogleAnalyticsServices.a(TAGDataLayerPersistentStoreImpl.o)   -[TAGDataLayerPersistentStoreImpl peekEntryIds:] in libGoogleAnalyticsServices.a(TAGDataLayerPersistentStoreImpl.o)  .... 

What is causing these errors? Am I missing anything?

Appreciate your help.


SOLUTION:

I solved it by linking my project with libsqlite3.0 library. The Google analytics documentation missed out mentioning to link this library. Hope this helps.

like image 500
jlmg5564 Avatar asked Apr 03 '14 08:04

jlmg5564


1 Answers

You can solve this issue importing "libsqlite3.0"

like image 58
Serluca Avatar answered Sep 29 '22 11:09

Serluca