Crashlytics does not show crashes

后端 未结 5 1617
有刺的猬
有刺的猬 2020-12-10 01:28

I have just installed Crashlitycs using this official instruction.

I have set Debug Information Format is “DWARF with dSYM File” for both Debug and Release and disab

5条回答
  •  执笔经年
    2020-12-10 01:52

    Another potential cause of crashes not uploading is implementing the Crashlytics delegate without calling the completion handler:

    // MARK: CrashlyitcsDelegate
    func crashlyticsDidDetectReport(forLastExecution report: CLSReport, completionHandler: @escaping (Bool) -> Void) {
        // Last launch we crashed!
        }
    }
    

    Instead, it should look like this:

    // MARK: CrashlyitcsDelegate
    func crashlyticsDidDetectReport(forLastExecution report: CLSReport, completionHandler: @escaping (Bool) -> Void) {
        // Last launch we crashed!
             completionHandler(true)
        }
    }
    

提交回复
热议问题