我在我的项目中集成了Google Analytics SDK 3.0.但是当我试图建造我的项目时,我得到了linker errors分.
正如在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)
....
是什么导致了这些错误?我错过什么了吗?
感谢您的帮助.
SOLUTION:个
我把我的项目和libsqlite3.0
图书馆联系起来解决了这个问题.谷歌分析文档遗漏了链接这个库的内容.希望这能帮上忙.