Prevent assertions from executing in release builds#1149
Prevent assertions from executing in release builds#1149twobitlabs wants to merge 1 commit intomagicalpanda:release/3.0from
Conversation
|
This is on purpose. I've been shipping with assertions enabled for a while now — crashing is better than data corruption or inconsistent or irrecoverable state. Is this causing you trouble? |
|
@tonyarnold I generally agree with that approach. However, here's what we're seeing:
It's not a huge deal because the crash is not user-facing (the app is already being ejected), but it is noise in crashlytics (currently our most common crash). It's also possible that the crash prevents other libraries that listen for So perhaps the real question is whether it's really necessary to call Thoughts? 🍺🍺😀 |
|
Honestly, I think you can get away without calling cleanup. I will have a good look when I get home, but it's really a holdover from pre-ARC times in terms of function. |
|
That's what I was thinking when I looked at what it does, but I thought I might be missing something. Thanks! |
Currently assertions are enabled even when building for Release