iOS 中的 Google Analytics SDK 3.0 _sqlite3 链接器错误 [英] Google Analytics SDK 3.0 _sqlite3 linker errors in iOS
问题描述
我正在我的项目中集成 Google Analytics SDK 3.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?
感谢您的帮助.
解决方案:
我通过将我的项目与 libsqlite3.0
库链接来解决它.谷歌分析文档没有提到链接这个库.希望这会有所帮助.
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.
推荐答案
导入libsqlite3.0"可以解决这个问题
You can solve this issue importing "libsqlite3.0"
这篇关于iOS 中的 Google Analytics SDK 3.0 _sqlite3 链接器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!