How to fetch iOS crash logs programmatically?

Viewed 1668

I am looking to retrieve the crash logs in iPhone programmatically. Under iOS 10 and above, the list of logs can be found here :

Settings --> Privacy -->Analytics --> Analytics Data-->logfiles.json

Is it possible to access the log files programmatically. I am basically looking to get all the files that are found in the data section.Not just the files related to my app.

Note : I am not looking here for Appstore approval.

3 Answers

While Fabric/Crashlytics is nice, it does not support watchOS.

If you need watchOS support and more flexibility in regards to where you send the reports, check out KSCrash @ https://github.com/kstenerud/KSCrash

Related