u0u0 / Quick-Cocos2dx-Community

Cocos2d-Lua 社区版
http://www.cocos2d-lua.org
552 stars 256 forks source link

iOS 12.x 上 Firebase Analytics 跟 sqlite3 冲突,导致失效 #138

Closed Maxize closed 4 years ago

Maxize commented 4 years ago

在 iOS 12.x 系统上,(iOS 13 的未测), sqlite3.h 和 sqlite3.c 应该是跟 Firebase Analytics 冲突了,会导致 failed to open database

日志类似:

6.3.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.3.0 - [Firebase/Analytics][I-ACS012001] Failed to open database (Init)
6.3.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", APMMonitorC
6.3.0 - [Firebase/Analytics][I-ACS012001] Failed to open database (Init)
6.3.0 - [Firebase/Analytics][I-ACS023011] Failed to start Analytics. Analytics is disabled
6.3.0 - [Firebase/Analytics][I-ACS023013] Analytics disabled

手动更新到 v3.30.1,就没有异常了。 look this: https://github.com/firebase/firebase-ios-sdk/issues/3321

没有更新过第三方库,不知道还有哪些需要改的,请 @u0u0 看看,这个是我提交的 pull request!

new pull request