iPadOS Sysdiagnose - invoke via API

Hello,

I would like to ask if there is any possibility to invoke the Apple Sysdiagnose via an API call. I cannot find any API reference for Sysdiagnose.

I am aware only about the manually invocation. https://it-training.apple.com/tutorials/support/sup075/

However, this is pretty annoying since a reproduction of a hunted bug takes several hours, so I am looking for the way how to invoke Sysdiagnose from our code.

There isn't an API for collecting the sysdiagnose. What info are you trying to retrieve from there for your debugging? There might be other techniques that would also get you what you need. For example, if you're looking for your app's own logs, take a look at OSLogStore, and if you're trying to collect your own crash reports it some automated fashion, perhaps implementing a MetricKit subscription will be of help to get a copy of MXCrashDiagnostic, or one of the other many diagnostics that MetricKit delivers.

— Ed Ford,  DTS Engineer

iPadOS Sysdiagnose - invoke via API
 
 
Q