{
  "format": "dockrun-bundle",
  "version": 1,
  "exportedAt": "2026-11-12T00:00:00Z",
  "workspaces": [],
  "workflows": [
    {
      "id": "4C15D68D-0F51-58EA-9CF8-54AA2A16EC32",
      "name": "Clean Xcode build data",
      "summary": "Deletes Xcode's DerivedData. Xcode rebuilds it on the next build.",
      "variables": [],
      "steps": [
        {
          "id": "A4FF0CC5-3F87-5C85-9403-B75123D5ADBE",
          "actionID": "script.run",
          "input": {
            "language": "zsh",
            "code": "# Deletes Xcode's build data (DerivedData). Xcode rebuilds it the next time you build; your projects are not touched.\ndir=\"${*:-~/Library/Developer/Xcode/DerivedData}\"; dir=\"${dir/#\\~/$HOME}\"\n[[ \"$dir\" == */DerivedData ]] || { echo \"Refusing: $dir is not a DerivedData folder.\" >&2; exit 1 }\n[ -d \"$dir\" ] || { echo \"No DerivedData folder, nothing to clean.\"; exit 0 }\nif pgrep -x Xcode >/dev/null; then echo \"Xcode is open. Quit Xcode, then run this again.\" >&2; exit 1; fi\nsize=$(du -sh \"$dir\" 2>/dev/null | cut -f1)\nrm -rf \"$dir\"/*(DN)\necho \"Removed ${size:-0B} of Xcode build data.\"\n"
          },
          "condition": {
            "kind": "always"
          },
          "onFailure": "stop",
          "timeout": 120,
          "isEnabled": true,
          "title": "Delete DerivedData"
        }
      ]
    }
  ]
}
