Get Sketch Crash Log FilePaths
✓ Published0🌍 Public
KKevinGutowski
Last edited May 5, 2021
Created on May 5, 2021
This example shows a log of Sketch crash reports by listing the file paths of crash logs stored in the macOS DiagnosticReports directory. The code filters filenames starting with "Sketch," maps them to full paths, and extracts each file’s creation date using the NSFileManager API, formatting dates with NSDateFormatter. It then outputs an array of objects containing the path, raw date, and formatted date string. The visualization presents these crash log file paths and their timestamps, likely to help users identify when crashes occurred and locate specific diagnostic files.
AI-generated description