【问题标题】:Google Analytics SDK 3.0 _sqlite3 linker errors in iOSiOS 中的 Google Analytics SDK 3.0 _sqlite3 链接器错误
【发布时间】: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


【解决方案1】:

您可以通过导入“libsqlite3.0”解决此问题

【讨论】:

  • 为什么 Google 没有要求添加“libsqlite3.0”?
  • 像魅力一样工作,谢谢。
猜你喜欢
  • 1970-01-01
  • 2013-08-19
  • 1970-01-01
  • 1970-01-01
  • 2015-05-19
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-06-19
相关资源
最近更新 更多