I created an error on my app to be able to show the error on Crashlytics dashboard.
This is the error:
func forcarCrashParaFirebase() {
var arrayToCrash: [Int] = []
arrayToCrash[2] = 1
}
This is the error that I can see in xcode console
Swift/ContiguousArrayBuffer.swift:613: Fatal error: Index out of range
Now, I want to see the same error on Craslytics dashboard.
Then, I access Firebase console and go to the Crashlytics dashboard.
But I was able to see the error, but I can’t identify it as an error “index out of bounds”.
This is what I can see:
The line 349 is the line that shows the error in my app, but the error message is completely different from what I expect to see. I expect to see an “index out of bounds” error. But the message says “partial error in closure”.
What I need to do to be able to identify the error as “index out of bonds”?