我希望我能在问题部分找到答案,但现在,经过 25 天的等待,我在这里发布我的问题。这是原始问题,但供您参考。
在 ios 上使用新的 Firebase SDK V3.xx 需要采取的第一步是调用[FIRApp configure];
,当我这样做时,xcode 控制台会告诉我 Firebase 已正确初始化。
但是,我的应用程序没有报告任何分析,并且我有时会在 xcode 控制台中看到以下错误消息。
<Error>: <FIRAnalytics/ERROR> Data loss. Cannot record raw event. Error: Error Domain=com.google.gmp.measurement.ErrorDomain Code=3 "Database operation "execute statement" failed with sqlite code 20 and error message "could not convert floating point value to integer without loss of data."" UserInfo={FIRAMonitorContext=execute statement,20,A,3, NSLocalizedDescription=Database operation "execute statement" failed with sqlite code 20 and error message "could not convert floating point value to integer without loss of data."}
<Error>: <FIRAnalytics/ERROR> Transaction failed
我不知道为什么会这样。初始化 Firebase 只需要一行[FIRApp configure];
因此,我没有什么可搞砸的了!
我觉得也许应该在项目中添加一个框架,但我似乎没有找到可能缺少的内容。
如果您能找到我如何绕过此错误消息,那就太好了。就算你是瞎猜,也请分享给我。:)