我按照Google Analytics for iOS中的说明进行操作,并且设置了SDK文件和框架后,在尝试构建项目时会遇到以下错误:
Undefined symbols for architecture armv7:
"_sqlite3_column_double", referenced from:
-[GAIAnalyticsPropertiesStore propertyRecordForTrackingId:] in libGoogleAnalyticsServices.a(GAIAnalyticsPropertiesStore.o)
"_sqlite3_bind_double", referenced from:
-[GAIAnalyticsPropertiesStore bindRecord:toUpsertStatement:] in libGoogleAnalyticsServices.a(GAIAnalyticsPropertiesStore.o)
还有更多这样的经历,有人经历过吗?
谢谢
最佳答案
本教程对我来说似乎已经过时了。您是否已添加所有库?
CoreData.framework
SystemConfiguration.framework
libz.dylib
libsqlite3.dylib
libGoogleAnalyticsServices.a
我建议去官方文档。
No using CocoaPods
Using CocoaPods