我在我的项目中集成了Google Analytics SDK 3.0.但是当我试图建造我的项目时,我得到了linker errors分.

正如在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)

....

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

感谢您的帮助.


SOLUTION:

我把我的项目和libsqlite3.0图书馆联系起来解决了这个问题.谷歌分析文档遗漏了链接这个库的内容.希望这能帮上忙.

推荐答案

导入"libsqlite3.0"可以解决这个问题.

Ios相关问答推荐

第三方框架的iOS隐私声明

通过拖动更改视图位置的SwiftUI会引发UI错误

ScrollViewReader Scrollto Not Working

objc[25442]:Swift类的扩展和类别不允许有+load方法

iOS 16.4,SwiftUI 底部工作表有时会忽略presentationDetents

ionic 4 - 编译 ios - 来自项目Pods的目标GoogleDataTransport中的问题

使用 Foundation 解压缩文件

SwiftUI 选项卡式视图防止滑动到下一个选项卡

swiftUI中的剪辑形状无法使用旋转效果

在iOS7半透明导航栏中获取正确的 colored颜色

缺少推送通知权利

iPhone iOS 无法正确显示 box-shadow

'+entityForName: nil 不是合法的 NSManagedObjectContext 参数 - 核心数据

在 Xcode 4 中将静态库链接到 iOS 项目

应用程序不包含正确的测试版权利

呈现和关闭模态视图控制器

NSURLSession:如何增加 URL 请求的超时时间?

ARC - __unsafe_unretained 的含义?

如何在 Swift 中更改按钮标题对齐方式?

zoom UIButton 动画 - Swift