我尝试将Crashlytics集成到我的iOS应用中,按照Install Crashlytics via CocoaPods和Force a Crash中的步骤查看信息中心内的崩溃。
无论如何,在" Crashlytics"中找不到问题。 100%无崩溃用户的菜单
但是"最新版本和#34;中显示了30次崩溃。具有0.0%无崩溃用户的菜单
在我看来,报告是根据这些日志提交的。
[Crashlytics] Version 3.8.5 (123)
[Crashlytics] Running on iPhone7,2, 10.3.3 (14G60)
[Answers] Initialized
[MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles
[MC] Reading from public effective user settings.
[Fabric] Initialized with kit versions: {
"com.twitter.answers.ios" = "1.3.5";
"com.twitter.crashlytics.ios" = "3.8.5";
"io.fabric.sdk.ios" = "1.6.12";
}
[Answers] Answers enabled with settings: {
"flush_interval_secs" = 10;
"flush_on_background" = 1;
"forward_to_google_analytics" = 0;
"include_purchase_events_in_forwarded_events" = 0;
"max_byte_size_per_file" = 8000;
"max_file_count_per_send" = 1;
"max_pending_send_file_count" = 100;
"sampling_rate" = 1;
"track_custom_events" = 1;
"track_predefined_events" = 1;
"track_view_controllers" = 0;
url = "https://e.crashlytics.com/spi/v2/events";
}
[Answers] Logging events to /var/mobile/Containers/Data/Application/E216B87B-9490-4BDE-9092-56FD77DE81CA/Library/Caches/com.crashlytics.data/com.onemoby.onewiwa/analytics/v2/events
[Answers] Transmitting packaged events for 'CAE6E657-71AA-473D-944A-A45510D472E5'.
[Crashlytics:Crash:Reports] Packaged report with id 'b2f013abc70a45438ee435dbe39e8868' for submission
[Crashlytics:Crash:Reports] Submitting report
[Crashlytics:Crash:Reports] Submitting async /var/mobile/Containers/Data/Application/E216B87B-9490-4BDE-9092-56FD77DE81CA/Library/Caches/com.crashlytics.data/com.onemoby.onewiwa/v3/prepared/6EEFC81C-A3CB-46AC-8F1C-7A0383159915.multipartmime
[Answers] Attempting to log app_crashed
[Answers] Transmitting packaged events for '62888FCD-CEDE-43C8-B58A-9D963ED64F94'.
[Fabric] settings downloaded successfully
[Fabric] Settings are available for consumption
[Answers] Finished transmission of 'CAE6E657-71AA-473D-944A-A45510D472E5'.
[Crashlytics:Crash:Reports] completed submission of /var/mobile/Containers/Data/Application/E216B87B-9490-4BDE-9092-56FD77DE81CA/Library/Caches/com.crashlytics.data/com.onemoby.onewiwa/v3/prepared/6EEFC81C-A3CB-46AC-8F1C-7A0383159915.multipartmime
[Crashlytics:Crash] report submission successful
[Answers] Finished transmission of '62888FCD-CEDE-43C8-B58A-9D963ED64F94'.
我还检查了Trobleshooting,
尝试启用调试模式,
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
Crashlytics.sharedInstance().debugMode = true
Fabric.with([Crashlytics.self])
return true
}
和ENABLE_BITCODE=NO
,但仪表板中没有任何问题。
我错过了什么?
编辑于2017-08-30 8:08 PM(GMT + 7):
Debug Information Format
Build Settings
Debug
Release
的{{1}} DWARF with dSYM File
已经Yay! We are not missing any dSYMs.
,Crashlytics控制台也说{{1}}。
编辑于2017-08-31 9:18 AM(GMT + 7):
我在第二天早上再次检查仪表板时显示了一些问题。但是,我试图再次重新发生崩溃,这个问题几乎在应用程序重新启动后立即显示在仪表板中。不知道为什么。
答案 0 :(得分:5)
等几个小时。 我多年来一直在生产使用crashlytics,这是很常见的事情。在我的情况下,你只需要等待。
我不确定原因,但会立即显示崩溃事件,但日志需要一段时间才能显示。
另一个提示是,只有在崩溃后重新打开应用程序时才会报告崩溃。不确定自动生成的崩溃,但是在发生正常崩溃时我总是要先重新打开它。