相关疑难解决方法(0)

iOS中的Google Analytics SDK 3.0 _sqlite3链接器错误

我正在将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)

....
Run Code Online (Sandbox Code Playgroud)

是什么导致了这些错误?我错过了什么吗?

感谢您的帮助.


解:

我通过将我的项目与libsqlite3.0库连接来解决它.谷歌分析文档错过了提及链接此库.希望这可以帮助.

sqlite google-analytics objective-c ios

82
推荐指数
1
解决办法
6916
查看次数

标签 统计

google-analytics ×1

ios ×1

objective-c ×1

sqlite ×1