With some crash we see Arg[3] = Dead. What does it mean? Is there a document which has the details about such crash report?
function specialization <Arg[3] = Dead>
The method has 3 parameters as shown below with two completion handlers at the end.
When the crash happens it mainly happens during the fatalError, however log does not show the fatal error message it shows the lines at which crash happened.
How to understand the argument dead crash?
static func someMethod(param1: String,
param2: @escaping () -> Void,
param3: @escaping () -> Void) {
guard let someConditionhere else {
// When crash happens it basically lands here
fatalError("Something went wrong")
}
param2()
param3()
}