Post

Replies

Boosts

Views

Activity

In Swift, how do I capture every error and send it to a webservice?
I am a solo developer at a government agency. This presents some interesting challanges. First and foremost, I create apps that are not able to access internet resources, and thus I don't have access to some tools that would provide the easy answer to a lot of my problems.My current problem is that I don't have the ability to use some of the very robust error handeling products out there. However, I need a way to capture crashes on devices that are not teathered to my workstation. I need robust reporting and the ability to see logs for anything that happened on devices that are deployed in places that are not accessable to me easily (think maximum security portion of a ****).My current thought is capturing every error and sending it to an internal webservice. However, I don't know how to do this without surronding every single line in a try catch. Does anyone have any experience with this, or with something else entirely that would get me the information I need to debug crashes?Thanks in advance
5
0
3.2k
Nov ’16