Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ios, crashlytics): use NSInternalInconsistencyException to crash …
…w/o redbox (#4126)
- Loading branch information
2cbab5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
2cbab5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@throw NSInternalInconsistencyException;
can crash the app, but firebase console can't get the report. report an issue here.I try to throw NSInternalInconsistencyException as bellow two ways in
AppDelegate.m
after the app loading 30 seconds,way one:
way two:
if I use way one, firebase console will NOT collect the crash,
if I use way two, firebase console will collect the crash.
Could you please help to double check with this?
2cbab5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mars-lan this is very interesting and could go a long way to explaining the currently-dormant-but-still-a-problem-I-believe problems with collection of iOS reports
2cbab5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mikehardy Interesting. Let me dig more into this and report back.
2cbab5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any chance to show the code after changing
AppDelegate.m
? I tried to change in this file however, it didn't work as well.2cbab5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't get what you mean "show the code after changing
AppDelegate.m
?" could you please explain a little bit?2cbab5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello. Sorry for not being clear. I said it based on what you have written above.
I kindly asked to see AppDelegate.m after you change with 'way two' above. I tried both and some other alternatives, however, I couldn't collect any crash in the console.
2cbab5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like we have a new way of doing this: #4426. I'm pretty sure this method worked at the time I tried, but I guess something changed from Firebase's side. The peril of integrating with a blackbox :)
2cbab5c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.