我正在整合谷歌分析 SDK 3.0在我的项目中。但我越来越链接器错误当尝试构建我的项目时。
正如在文档 https://developers.google.com/analytics/devguides/collection/ios/v3/#headers,我在我的项目中链接了以下库,
- libGoogleAnalyticsServices.a
- AdSupport.framework
- CoreData.framework
- 系统配置.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
图书馆。谷歌分析文档没有提到链接这个库。希望这可以帮助。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)