【发布时间】:2014-05-14 23:03:48
【问题描述】:
我正在我的项目中集成 Google Analytics SDK 3.0。但是在尝试构建我的项目时,我遇到了链接器错误。
正如documentation 中提到的,我在我的项目中链接了以下库,
- libGoogleAnalyticsServices.a
- AdSupport.framework
- CoreData.framework
- SystemConfiguration.framework
- libz.dylib
即便如此,我在构建项目时仍会出现以下错误,
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)
....
是什么导致了这些错误?我错过了什么吗?
感谢您的帮助。
解决方案:
我通过将我的项目与libsqlite3.0 库链接来解决它。谷歌分析文档没有提到链接这个库。希望这会有所帮助。
【问题讨论】:
-
感谢分享!您可以考虑回答自己的问题。
-
非常感谢您分享这个答案。它一定与谷歌最新的分析库有关。更改内容时 Google 会更新您的文档!
标签: ios objective-c sqlite google-analytics