iOS中的Google Analytics(分析)SDK 3.0 _sqlite3链接器错误


82

我正在将Google Analytics(分析)SDK 3.0集成到我的项目中。但是在尝试构建项目时出现链接器错误

文档中所述,我已经在项目中链接了以下库,

  • 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 Analytics(分析)文档漏掉了提及链接此库的内容。希望这可以帮助。


14
感谢分享 !您可以考虑回答自己的问题。
rdurand 2014年

3
非常感谢您分享这个答案。它必须与Google最新的Google Analytics(分析)库有关。耶稣Google在更改某些内容时会更新您的文档!
PaperThick 2014年

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.