我正在将Google Analytics SDK 3.0集成到我的项目中.但是在尝试构建项目时我遇到链接器错误.
如文档中所述,我在项目中链接了以下库,
即便如此,我在构建项目时遇到以下错误,
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)
....
Run Code Online (Sandbox Code Playgroud)
是什么导致了这些错误?我错过了什么吗?
感谢您的帮助.
解:
我通过将我的项目与libsqlite3.0库连接来解决它.谷歌分析文档错过了提及链接此库.希望这可以帮助.