问题描述
我在我的项目中整合了 Google AnalyticsSDK 3.0 。但在尝试构建我的项目时,我收到了链接器错误。
正如,我在我的项目中链接了以下库:$ b
即使这样,我在构建项目时遇到了以下错误:
d:警告:找不到选项'-L/ Users / ....的目录名称项目/库/ Google Analytics'
_sqlite3_bind_blob,引用from:
- libGoogleAnalyticsServices.a(TAGDataLayerPersistentStoreImpl.o)中的[TAGDataLayerPersistentStoreImpl writeEntriesToDatabase:expireTime:]
_sqlite3_bind_int,引用自:
- [TAGDataLayerPe (TAGDataLayerPersistentStoreImpl.o)
_sqlite3_bind_int64,引用自:
- libGoogleAnalyticsServices.a中的[TAGDataLayerPersistentStoreImpl writeEntriesToDatabase:expireTime:]
- [TAGDataLayerPersistentStoreImpl peekEntryIds:] in libGoogleAnalyticsServices.a(TAGDataLayerPersistentStoreImpl.o)
...
导致这些错误的原因是什么?我错过了什么?
感谢您的帮助。
解决方案:
我通过将项目与 libsqlite3.0
库链接来解决此问题。谷歌分析文档错过了提到链接这个库。希望这有助于解决这个问题。
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.
You can solve this issue importing "libsqlite3.0"
这篇关于iOS中的Google Analytics SDK 3.0 _sqlite3链接器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!