iOS Firebase 检测到事件中的崩溃,但无法识别 Crashlytics 部分中的应用程序

如何解决iOS Firebase 检测到事件中的崩溃,但无法识别 Crashlytics 部分中的应用程序

我花了一整天的时间弄清楚 Crashlytics 和我的应用程序发生了什么。 当我的应用崩溃时,它会检测到致命事件,但未激活应用的 crashlytics 部分。

Not detecting app

它不会检测应用,但会检测崩溃事件:

Events

这是日志:

2021-02-18 19:13:37.616817-0500 Flipper Vanilla[6802:623603] [Firebase/Crashlytics] Version 4.6.2
2021-02-18 19:13:37.935629-0500 Flipper Vanilla[6802:623793] [Firebase/Crashlytics] Packaged report with id 'a0508fb8c8f14176bd8b3c186ece7e53' for submission
2021-02-18 19:13:38.117774-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise],appName: __FIRAPP_DEFAULT
2021-02-18 19:13:38.118689-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Crashlytics][I-CLS000000] [Crashlytics] Running on iPhone8,2,14.4.0 (18D52)
2021-02-18 19:13:38.119240-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Crashlytics][I-CLS000000] [Crashlytics:Crash:Reports:Event] Registered Firebase Analytics event listener
2021-02-18 19:13:38.119603-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Crashlytics][I-CLS000000] Automatic data collection is enabled.
2021-02-18 19:13:38.119863-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Crashlytics][I-CLS000000] Unsent reports will be uploaded at startup
2021-02-18 19:13:38.120093-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/RemoteConfig][I-RCN000062] Loading database at path /var/mobile/Containers/Data/Application/41DD1547-68EE-4853-97B2-D24DA38F2CC6/Library/Application Support/Google/RemoteConfig/RemoteConfig.sqlite3
2021-02-18 19:13:38.120430-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Performance][I-PRF900002] Session Id generated - 382402f1304d45a4a256b540eb2a17f3
2021-02-18 19:13:38.120665-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Crashlytics][I-CLS000000] Preparing the report for the new endpoint: 1
2021-02-18 19:13:38.120972-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Crashlytics][I-CLS000000] [Crashlytics:Crash:Reports] Submitting report
2021-02-18 19:13:38.121183-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Crashlytics][I-CLS000000] Expected encodable string,but found NSNull instead. Set a symbolic breakpoint at FIRCLSEncodeString to debug.
2021-02-18 19:13:38.121942-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Crashlytics][I-CLS000000] [Crashlytics:Crash:Reports:Event] Sending event.
2021-02-18 19:13:38.122189-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Performance][I-PRF100009] Logging trace metric - _as 690.5800ms
2021-02-18 19:13:38.122420-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0],appName: __FIRAPP_DEFAULT
2021-02-18 19:13:38.122728-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Crashlytics][I-CLS000000] [Crashlytics:Crash:Reports] Completed report submission with id: a0508fb8c8f14176bd8b3c186ece7e53
2021-02-18 19:13:38.129444-0500 Flipper Vanilla[6802:623796] 6.34.0 - [GULReachability][I-REA902003] Monitoring the network status
2021-02-18 19:13:38.130078-0500 Flipper Vanilla[6802:623796] 6.34.0 - [GULReachability][I-REA902004] Network status has changed. Code:1,status:Disconnected
2021-02-18 19:13:38.130363-0500 Flipper Vanilla[6802:623796] 6.34.0 - [GULReachability][I-REA902004] Network status has changed. Code:2,status:Connected
2021-02-18 19:13:38.130630-0500 Flipper Vanilla[6802:623796] 6.34.0 - [GULReachability][I-REA902003] Monitoring the network status
2021-02-18 19:13:38.169758-0500 Flipper Vanilla[6802:623793] 6.34.0 - [Firebase/Analytics][I-ACS024000] Debug mode is on
2021-02-18 19:13:38.170176-0500 Flipper Vanilla[6802:623793] 6.34.0 - [Firebase/Analytics][I-ACS005000] The AdSupport Framework is not currently linked. Some features will not function properly. Learn more at ...
2021-02-18 19:13:38.170548-0500 Flipper Vanilla[6802:623793] 6.34.0 - [GoogleUtilities/AppDelegateSwizzler][I-SWZ001008] Successfully created App Delegate Proxy automatically. To disable the proxy,set the flag GoogleUtilitiesAppDelegateProxyEnabled to NO (Boolean) in the Info.plist
2021-02-18 19:13:38.175850-0500 Flipper Vanilla[6802:623787] 6.34.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60900000 started
2021-02-18 19:13:38.177508-0500 Flipper Vanilla[6802:623787] 6.34.0 - [Firebase/Analytics][I-ACS023008] To disable debug logging set the following application argument: -noFIRAnalyticsDebugEnabled (see ...)
2021-02-18 19:13:38.179096-0500 Flipper Vanilla[6802:623787] 6.34.0 - [Firebase/Analytics][I-ACS023009] Debug logging enabled
2021-02-18 19:13:38.179573-0500 Flipper Vanilla[6802:623787] 6.34.0 - [Firebase/Analytics][I-ACS023207] To enable verbose logging set the following application argument: -FIRAnalyticsVerboseLoggingEnabled (see ...)
2021-02-18 19:13:38.180006-0500 Flipper Vanilla[6802:623787] 6.34.0 - [Firebase/Analytics][I-ACS002002] APMExperimentAlarm scheduled to fire in approx. (s): 6872.976175904274
2021-02-18 19:13:38.180497-0500 Flipper Vanilla[6802:623786] 6.34.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement
2021-02-18 19:13:38.180973-0500 Flipper Vanilla[6802:623786] 6.34.0 - [Firebase/Analytics][I-ACS029014] Successfully parsed a configuration. Version: 1613596375523952
2021-02-18 19:13:38.181041-0500 Flipper Vanilla[6802:623786] 6.34.0 - [Firebase/Analytics][I-ACS023016] Analytics is ready to receive events
2021-02-18 19:13:38.187078-0500 Flipper Vanilla[6802:623786] 6.34.0 - [Firebase/Analytics][I-ACS032003] iAd framework is not linked. Search Ad Attribution Reporter is disabled.
2021-02-18 19:13:38.189051-0500 Flipper Vanilla[6802:623793] 6.34.0 - [Firebase/Analytics][I-ACS002002] Engagement timer scheduled to fire in approx. (s): 3600
2021-02-18 19:13:38.189369-0500 Flipper Vanilla[6802:623793] 6.34.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled
2021-02-18 19:13:38.189958-0500 Flipper Vanilla[6802:623793] 6.34.0 - [Firebase/Analytics][I-ACS023220] Analytics screen reporting is enabled. Call +[FIRAnalytics logEventWithName:FIREventScreenView parameters:] to log a screen view event. To disable automatic screen reporting,set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist
2021-02-18 19:13:38.192536-0500 Flipper Vanilla[6802:623786] 6.34.0 - [Firebase/Analytics][I-ACS023051] Logging event: origin,name,params: clx,app_exception (_ae),{
    fatal = 1;
    ga_event_origin (_o) = clx;
    ga_realtime (_r) = 1;
    timestamp = 0;
}
2021-02-18 19:13:38.192579-0500 Flipper Vanilla[6802:623786] 6.34.0 - [Firebase/Analytics][I-ACS023073] Debug mode is enabled. Marking event as debug and real-time. Event name,parameters: app_exception (_ae),{
    fatal = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = clx;
    ga_realtime (_r) = 1;
    timestamp = 0;
}
2021-02-18 19:13:38.197688-0500 Flipper Vanilla[6802:623796] 6.34.0 - [Firebase/Analytics][I-ACS023072] Event logged. Event name,event params: app_exception (_ae),{
    fatal = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = clx;
    ga_realtime (_r) = 1;
    timestamp = 0;
}
2021-02-18 19:13:38.204796-0500 Flipper Vanilla[6802:623790] 6.34.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): 0.7330728769302368
2021-02-18 19:13:39.040080-0500 Flipper Vanilla[6802:623791] 6.34.0 - [Firebase/Analytics][I-ACS002001] Measurement timer fired
2021-02-18 19:13:39.040689-0500 Flipper Vanilla[6802:623791] 6.34.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2021-02-18 19:13:39.040831-0500 Flipper Vanilla[6802:623791] 6.34.0 - [Firebase/Analytics][I-ACS023105] Event is not subject to real-time event count daily limit. Marking an event as real-time. Event name,{
    fatal = 1;
    ga_debug (_dbg) = 1;
    ga_event_origin (_o) = clx;
    ga_realtime (_r) = 1;
    timestamp = 0;
}
2021-02-18 19:13:39.265469-0500 Flipper Vanilla[6802:623782] 6.34.0 - [Firebase/Performance][I-PRF100009] Logging network request trace - https://crashlyticsreports-pa.googleapis.com/v1/firelog/legacy/batchlog,Response code: 200,1115.4450ms
2021-02-18 19:13:39.266737-0500 Flipper Vanilla[6802:623782] 6.34.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise],appName: __FIRAPP_DEFAULT
2021-02-18 19:13:39.266889-0500 Flipper Vanilla[6802:623782] 6.34.0 - [Firebase/Performance][I-PRF100009] Logging network request trace - https://crashlyticsreports-pa.googleapis.com/v1/firelog/legacy/batchlog,1115.7930ms
2021-02-18 19:13:39.267039-0500 Flipper Vanilla[6802:623782] 6.34.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0],appName: __FIRAPP_DEFAULT
2021-02-18 19:13:39.268343-0500 Flipper Vanilla[6802:623782] 6.34.0 - [Firebase/Analytics][I-ACS012018] Saving bundle. size (bytes): 429
2021-02-18 19:13:39.268571-0500 Flipper Vanilla[6802:623782] 6.34.0 - [Firebase/Analytics][I-ACS023116] Bundle added to the upload queue. BundleID,timestamp (ms): 9,1613693617937
2021-02-18 19:13:39.339025-0500 Flipper Vanilla[6802:623787] 6.34.0 - [Firebase/Analytics][I-ACS023039] Measurement data sent to network. Timestamp (ms),data: 1613693619338,<APMPBMeasurementBatch: 0x282089750>
2021-02-18 19:13:39.588713-0500 Flipper Vanilla[6802:623782] 6.34.0 - [Firebase/Analytics][I-ACS900000] Uploading data. Host: https://app-measurement.com/a
2021-02-18 19:13:39.934109-0500 Flipper Vanilla[6802:623792] 6.34.0 - [Firebase/Analytics][I-ACS901006] Received SSL challenge for host. Host: https://app-measurement.com/a
2021-02-18 19:13:40.072404-0500 Flipper Vanilla[6802:623793] 6.34.0 - [Firebase/Performance][I-PRF100009] Logging network request trace - https://app-measurement.com/a,Response code: 204,545.4280ms
2021-02-18 19:13:40.072587-0500 Flipper Vanilla[6802:623793] 6.34.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise],appName: __FIRAPP_DEFAULT
2021-02-18 19:13:40.072700-0500 Flipper Vanilla[6802:623793] 6.34.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0],appName: __FIRAPP_DEFAULT
2021-02-18 19:13:40.073752-0500 Flipper Vanilla[6802:623793] 6.34.0 - [Firebase/Analytics][I-ACS023044] Successful upload. Got network response. Code,size: 204,-1
2021-02-18 19:13:40.077967-0500 Flipper Vanilla[6802:623782] 6.34.0 - [Firebase/Analytics][I-ACS002002] Measurement timer scheduled to fire in approx. (s): -1.139809966087341
2021-02-18 19:13:40.086867-0500 Flipper Vanilla[6802:623782] 6.34.0 - [Firebase/Analytics][I-ACS002003] Measurement timer canceled
2021-02-18 19:14:12.238166-0500 Flipper Vanilla[6802:623785] 6.34.0 - [Firebase/Performance][I-PRF100009] Logging network request trace - https://firebaselogging-pa.googleapis.com/v1/firelog/legacy/batchlog,61.9940ms
2021-02-18 19:14:12.239045-0500 Flipper Vanilla[6802:623785] 6.34.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise],appName: __FIRAPP_DEFAULT
2021-02-18 19:14:12.240757-0500 Flipper Vanilla[6802:623785] 6.34.0 - [Firebase/Performance][I-PRF100009] Logging network request trace - https://firebaselogging-pa.googleapis.com/v1/firelog/legacy/batchlog,62.8420ms
2021-02-18 19:14:12.241533-0500 Flipper Vanilla[6802:623785] 6.34.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0],appName: __FIRAPP_DEFAULT
2021-02-18 19:14:12.242150-0500 Flipper Vanilla[6802:623785] 6.34.0 - [Firebase/Installations][I-FIS002000] -[FIRInstallationsIDController createGetInstallationItemPromise],appName: __FIRAPP_DEFAULT
2021-02-18 19:14:12.242965-0500 Flipper Vanilla[6802:623785] 6.34.0 - [Firebase/Installations][I-FIS002001] -[FIRInstallationsIDController installationWithValidAuthTokenForcingRefresh:0],appName: __FIRAPP_DEFAULT

我猜这与:

Expected encodable string,but found NSNull instead. Set a symbolic breakpoint at FIRCLSEncodeString to debug.

当我在那里设置断点时,在调试器中我看到一个字符串,但是一旦该字符串传递给 FIRCLSEncodeString 函数,它就会变为 nil

不知道是什么原因造成的。

有什么想法吗?

解决方法

我找到了原因。 我的应用程序在目标设置中没有显示名称和字符串版本,这导致 Crashlytics 打印 Expected encodable string,but found NSNull instead 并最终不发送报告。 我必须禁用所有优化才能对其进行调试。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


依赖报错 idea导入项目后依赖报错,解决方案:https://blog.csdn.net/weixin_42420249/article/details/81191861 依赖版本报错:更换其他版本 无法下载依赖可参考:https://blog.csdn.net/weixin_42628809/a
错误1:代码生成器依赖和mybatis依赖冲突 启动项目时报错如下 2021-12-03 13:33:33.927 ERROR 7228 [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPL
错误1:gradle项目控制台输出为乱码 # 解决方案:https://blog.csdn.net/weixin_43501566/article/details/112482302 # 在gradle-wrapper.properties 添加以下内容 org.gradle.jvmargs=-Df
错误还原:在查询的过程中,传入的workType为0时,该条件不起作用 &lt;select id=&quot;xxx&quot;&gt; SELECT di.id, di.name, di.work_type, di.updated... &lt;where&gt; &lt;if test=&qu
报错如下,gcc版本太低 ^ server.c:5346:31: 错误:‘struct redisServer’没有名为‘server_cpulist’的成员 redisSetCpuAffinity(server.server_cpulist); ^ server.c: 在函数‘hasActiveC
解决方案1 1、改项目中.idea/workspace.xml配置文件,增加dynamic.classpath参数 2、搜索PropertiesComponent,添加如下 &lt;property name=&quot;dynamic.classpath&quot; value=&quot;tru
删除根组件app.vue中的默认代码后报错:Module Error (from ./node_modules/eslint-loader/index.js): 解决方案:关闭ESlint代码检测,在项目根目录创建vue.config.js,在文件中添加 module.exports = { lin
查看spark默认的python版本 [root@master day27]# pyspark /home/software/spark-2.3.4-bin-hadoop2.7/conf/spark-env.sh: line 2: /usr/local/hadoop/bin/hadoop: No s
使用本地python环境可以成功执行 import pandas as pd import matplotlib.pyplot as plt # 设置字体 plt.rcParams[&#39;font.sans-serif&#39;] = [&#39;SimHei&#39;] # 能正确显示负号 p
错误1:Request method ‘DELETE‘ not supported 错误还原:controller层有一个接口,访问该接口时报错:Request method ‘DELETE‘ not supported 错误原因:没有接收到前端传入的参数,修改为如下 参考 错误2:cannot r
错误1:启动docker镜像时报错:Error response from daemon: driver failed programming external connectivity on endpoint quirky_allen 解决方法:重启docker -&gt; systemctl r
错误1:private field ‘xxx‘ is never assigned 按Altʾnter快捷键,选择第2项 参考:https://blog.csdn.net/shi_hong_fei_hei/article/details/88814070 错误2:启动时报错,不能找到主启动类 #
报错如下,通过源不能下载,最后警告pip需升级版本 Requirement already satisfied: pip in c:\users\ychen\appdata\local\programs\python\python310\lib\site-packages (22.0.4) Coll
错误1:maven打包报错 错误还原:使用maven打包项目时报错如下 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-resources)
错误1:服务调用时报错 服务消费者模块assess通过openFeign调用服务提供者模块hires 如下为服务提供者模块hires的控制层接口 @RestController @RequestMapping(&quot;/hires&quot;) public class FeignControl
错误1:运行项目后报如下错误 解决方案 报错2:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project sb 解决方案:在pom.
参考 错误原因 过滤器或拦截器在生效时,redisTemplate还没有注入 解决方案:在注入容器时就生效 @Component //项目运行时就注入Spring容器 public class RedisBean { @Resource private RedisTemplate&lt;String
使用vite构建项目报错 C:\Users\ychen\work&gt;npm init @vitejs/app @vitejs/create-app is deprecated, use npm init vite instead C:\Users\ychen\AppData\Local\npm-