You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: KSCrash.m (341): -[KSCrash sendAllReportsWithCompletion:]_block_invoke: Failed to send reports: Error Domain=KSCrashReportSinkEMail Code=0 "E-Mail not enabled on device" UserInfo={NSLocalizedDescription=E-Mail not enabled on device} Printing description of error:
#418
Open
ChinaKeep opened this issue
Oct 13, 2021
· 0 comments
func crashReport() {
let emailAddress = "[email protected]"
let emailCrash = KSCrashInstallationEmail.sharedInstance()
emailCrash?.recipients = [emailAddress]
emailCrash?.subject = "Crash Report"
emailCrash?.message = "This is a crash report"
emailCrash?.filenameFmt = "crash-report-bugs.txt.gz"
emailCrash?.setReportStyle(KSCrashEmailReportStyleJSON, useDefaultFilenameFormat: true)
emailCrash?.install()
//奔溃报告发送后,如何处理旧奔溃
KSCrash.sharedInstance().deleteBehaviorAfterSendAll = KSCDeleteNever
//发送奔溃报告
DispatchQueue.main.async {
//刷新UI的代码放到主线程执行
emailCrash?.sendAllReports(completion: { reports, completed, error in
if completed {
debugLog("Send (String(describing: reports?.count)) reports")
}else{
debugLog("Failed to send reprots:(String(describing: error))")
}
})
}
}
failed why??
The text was updated successfully, but these errors were encountered: