How to catch all app exceptions/errors in Swift/iOS
<p>What I want is to sign out the user if an exception/error happens (instead of crashing the app).</p>

<p>I don't want to add try/catch all over my code (all view controllers for example), I want something simples, one try/catch (or whatever else I need) to catch an exception that happened (and was not handled) anywhere in the code.</p>

<p>How can I achieve this?</p>

<p>Thank you.</p>