Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fetch iOS crash logs programmatically?

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.

like image 307
icodes Avatar asked May 17 '17 11:05

icodes


1 Answers

There is no public or private API to collect the crash reports iOS generates. On Jailbroken devices you should be able to go to the file system folder where iOS stores them and collect them directly from there. (You would need to find this folder as I don't know the exact location right now, but it is probably similar to where macOS stores them)

like image 100
Kerni Avatar answered Oct 07 '22 23:10

Kerni