Allow reusing Xcode.app's per-workspace DerivedData (avoid duplicate builds); static XCODEBUILDMCP_DERIVED_DATA_PATH can't map per workspace
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- build-system, tooling
Hướng nghiên cứu
Bắt đầu tại resolveEffectiveDerivedDataPath và xem xét cơ chế cô lập theo workspace được giới thiệu bởi #340. Kiểm tra cách các thư mục DerivedData của Xcode.app cung cấp WorkspacePath trong info.plist, sau đó xác định cách các đường dẫn khớp và fallback cần hoạt động. Hoàn thành khi mỗi workspace có thể tái sử dụng DerivedData của GUI mà không xảy ra xung đột, còn các workspace chưa có thư mục hiện tại vẫn duy trì cơ chế cô lập xác định.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Version: 2.7.0
Problem
For derived data the MCP currently offers two modes, neither of which lets agent builds share Xcode.app's DerivedData per workspace:
- Default: per-workspace isolation (#340), but under the MCP's own tree (
~/Library/Developer/XcodeBuildMCP/workspaces/<workspace>/DerivedData). This is separate from Xcode.app's~/Library/Developer/Xcode/DerivedData/<Workspace>-<hash>, so a project built both in the GUI and via the MCP is built and stored twice — double the disk and no incremental reuse across the two. XCODEBUILDMCP_DERIVED_DATA_PATH: a single static path applied to every call (resolveEffectiveDerivedDataPathreturns it verbatim). With multiple workspaces/worktrees, they all collide in one folder → build-product clobbering and full rebuilds.
Request
A mode to resolve derived data to the existing Xcode.app DerivedData folder for each workspace (e.g. matching WorkspacePath in each folder's info.plist), and/or per-workspace configurability instead of a single static override.
This would let a repo built in both Xcode and the MCP share one DerivedData per workspace — no duplication, true incremental reuse between interactive and agent builds.
Workaround
I currently achieve this with a client-side PreToolUse hook that rewrites each build/test call's derivedDataPath to the matching GUI folder (looked up via WorkspacePath in each folder's info.plist), falling back to a deterministic per-workspace path when no GUI folder exists yet. Happy to share it if useful.
Related
- #340 (per-workspace DerivedData isolation) — implemented isolation, but into the MCP's own tree rather than Xcode.app's.
- #283 (tilde expansion in config'd derived data path).
- Ngôn ngữ chính
- TypeScript
- Star
- 6.4k
- Fork
- 320
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của getsentry/XcodeBuildMCP
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
getsentry/XcodeBuildMCP#520 ·
-
Warden weekly sweep Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
getsentry/XcodeBuildMCP#495 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
getsentry/XcodeBuildMCP#537 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
getsentry/XcodeBuildMCP#535 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 28/100
getsentry/XcodeBuildMCP#534 ·
Tất cả issue của getsentry/XcodeBuildMCP
Issue tương tự
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Crush Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
ElementsProject/cln-application#167 · 1 bình luận · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Quantco/pnpm-licenses#17 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100