TopRank Skills

Home / Claw Skills / Analyse des données / xcode-build-analyzer
Official OpenClaw rules 54%

xcode-build-analyzer

Analyze Xcode build logs — timing, warnings, errors, slow compiles, and build history from DerivedData.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 xcode-build-analyzer 技能。 若已安装,则直接安装 xcode-build-analyzer 技能。

Overview

Skill Key
alexissan/xcode-build-analyzer
Author
alexissan
Source Repo
openclaw/skills
Version
-
Source Path
skills/alexissan/xcode-build-analyzer
Latest Commit SHA
a2b35d0b2bb9e1322ef26ebf50af223426cec80a

Extracted Content

SKILL.md excerpt

# Xcode Build Analyzer

Analyze Xcode build performance, warnings, errors, and history by reading DerivedData build logs on macOS.

## Requirements

- **macOS only** — reads from `~/Library/Developer/Xcode/DerivedData/`
- **Xcode** must be installed and have built at least one project
- **plutil**, **gunzip**, **sqlite3** (all pre-installed on macOS)
- Full Disk Access may be required depending on the process running queries

## Key paths

```
DERIVED_DATA=~/Library/Developer/Xcode/DerivedData
```

Each project has a folder named `<ProjectName>-<hash>` containing:
- `info.plist` — project workspace path and last accessed date
- `Logs/Build/LogStoreManifest.plist` — structured index of all builds (timing, status, warnings, errors)
- `Logs/Build/*.xcactivitylog` — gzip-compressed SLF build logs with per-step timing and full compiler output

> **Important:** All queries are read-only. Never modify DerivedData contents.

## List all projects in DerivedData

```bash
for dir in ~/Library/Developer/Xcode/DerivedData/*-*; do
  [ -d "$dir" ] || continue
  NAME="$(basename "$dir" | sed 's/-[a-z]*$//')"
  WORKSPACE="$(plutil -extract WorkspacePath raw "$dir/info.plist" 2>/dev/null || echo "unknown")"
  LAST_ACCESS="$(plutil -extract LastAccessedDate raw "$dir/info.plist" 2>/dev/null || echo "unknown")"
  echo "$NAME | $WORKSPACE | Last accessed: $LAST_ACCESS"
done
```

## Build history for a project

Parse the `LogStoreManifest.plist` for structured build data. This is the most reliable source — it contains timing, error/warning counts, and scheme info for every build without needing to decompress logs.

```bash
# Replace PROJECT_DIR with the project's DerivedData folder
# To find it: ls ~/Library/Developer/Xcode/DerivedData/ | grep -i "ProjectName"
PROJECT_DIR="$(ls -d ~/Library/Developer/Xcode/DerivedData/PROJECT_NAME-* 2>/dev/null | head -1)"
MANIFEST="$PROJECT_DIR/Logs/Build/LogStoreManifest.plist"

plutil -convert json -o - "$MANIFEST" 2>/dev/null | python3 -c "
import js...

Related Claw Skills