Google Analytics SDK 3.0 _sqlite3 linker errors in iOS

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 06:26:11

问题


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.


回答1:


You can solve this issue importing "libsqlite3.0"



来源:https://stackoverflow.com/questions/22832200/google-analytics-sdk-3-0-sqlite3-linker-errors-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!