Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Covers production iOS/iPadOS performance telemetry via MetricKit: MetricManager reports, hang and crash triage, signposts, iOS 26 support.
36% 100%+64 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 8 of 22 without it.
We need to safely persist received MetricReport objects to disk in our iOS telemetry worker before marking processing complete. What Swift protocol conformance allows MetricReport to be stored as JSON?
Stores the encoded JSON data atomically in local storage before upload
3 of 3 safety checks passed
Use these patterns after choosing the iOS/iPadOS 27 MetricManager path or the isolated iOS 26 MXMetricManager compatibility path in the main skill.
Beta-sensitive: The iOS/iPadOS 27 examples follow Apple's current beta documentation. They have not been locally compiler-verified because Xcode 27 is unavailable. Re-check availability and signatures with the shipping SDK.
The report consumer should perform one small, reliable operation: encode and durably enqueue the complete report.
Use an outbox record that includes:
MetricReport or DiagnosticReport bytesKeep raw reports until the server accepts them or a documented retention limit expires. Parse derived fields in a separate worker so a parser failure cannot discard the source evidence.
@available(iOS 27.0, *)
func enqueue(_ report: MetricReport) async throws {
let data = try JSONEncoder().encode(report)
try await outbox.insert(
kind: .metric,
Next to this one in the catalogue, plus more from the same author.