get_build_results
Aggregate all build errors and warnings from Xcode builds since the last clean, ensuring you see complete results even after incremental builds.
Instructions
Get aggregated build errors and warnings from all builds since the last clean operation.
This tool addresses the issue where incremental builds only show warnings for recompiled files. It parses the build log manifest (LogStoreManifest.plist) and aggregates warnings from all builds since the last clean, excluding warnings from files that were subsequently recompiled.
Strategy:
Locate the project's DerivedData/Logs/Build directory
Parse LogStoreManifest.plist to find all builds since last clean
For each build, parse the .xcactivitylog file to extract:
Warnings and errors with file/line/column/message
List of files compiled in that build
Aggregate warnings, keeping only the most recent warning for each file
If a file was recompiled in a later build, use warnings from that later build
This ensures you see all current warnings even after incremental builds.
Args: project_path: Path to an Xcode project or workspace directory max_warnings: Maximum number of warnings to show in response (default 50)
Returns: JSON string with format: { "derived_data_path": "/path/to/DerivedData/...", "summary": { "total_builds": N, "builds_since_clean": M, "builds_analyzed": K, "clean_info": "...", "total_warnings": X, "warnings_by_type": {"warnings": W, "errors": E}, "unique_files_with_warnings": F, "files_recompiled_multiple_times": R }, "aggregated_warnings": [ { "file": "/path/to/File.swift", "line": 123, "column": 45, "message": "...", "type": "warning" } ], "files_with_multiple_builds": [ { "file": "/path/to/File.swift", "builds": 3, "warnings_excluded": 2 } ], "builds_analyzed": [ { "uuid": "...", "title": "Build FunVoice", "time": 782185536.0, "warnings_found": 4, "files_compiled": 26 } ] }
Note: Only the first max_warnings warnings are included in aggregated_warnings.
The summary counts reflect the total before limiting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| max_warnings | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |