首页 > 解决方案 > 将 firebase sdk 更新到 6.2.0 或更高版本时,Firebase 分析被禁用

问题描述

将 Firebase Core iOS SDK 更新到 6.2.0 或更高版本时,Firebase Analytics 停止工作。

如果版本为 6.1.0 或更低,则可以正常工作。

[FIRApp 配置];

在控制台中获取以下日志

6.10.0 - [Firebase/Analytics][I-ACS034002] Failed to recreate database file. Error: Error Domain=com.google.gmp.measurement.ErrorDomain Code=3 "Database operation "prepare statement" failed with sqlite code 0 and error message "not an error"" UserInfo={NSLocalizedDescription=Database operation "prepare statement" failed with sqlite code 0 and error message "not an error", APMMonitorContext=prepare statement,0,A,3}

6.10.0 - [Firebase/Analytics][I-ACS012001] Failed to open database (Init)

6.10.0 - [Firebase/Analytics][I-ACS034002] Failed to recreate database file. Error: Error Domain=com.google.gmp.measurement.ErrorDomain Code=3 "Database operation "prepare statement" failed with sqlite code 0 and error message "not an error"" UserInfo={NSLocalizedDescription=Database operation "prepare statement" failed with sqlite code 0 and error message "not an error", APMMonitorContext=prepare statement,0,A,3}

6.10.0 - [Firebase/Analytics][I-ACS012001] Failed to open database (Init)

6.10.0 - [Firebase/Analytics][I-ACS023011] Failed to start Analytics. Analytics is disabled

标签: iosobjective-c

解决方案


推荐阅读