I am working on a swift based iOS application. I am working with Swift 4.2 and Xcode 11.3.1. I want to implement the try catch exception handling for all the major functions irrespective of whether the function 'throws', so that I can get all the exceptions which are occurring in the application to any user at run time. I am planning to log all such run time exceptions in the text file on device and then upload it to my backend server for analyzing issues.
I have already tried to do this, but it seems Swift is not providing way to handle all the run time exceptions without throws.
Is there a way, I can achieve the exception logging which I have mentioned above?
I will appreciate any help.
I have already tried to do this, but it seems Swift is not providing way to handle all the run time exceptions without throws.
Is there a way, I can achieve the exception logging which I have mentioned above?
I will appreciate any help.